-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentation
Description
So I'm using Shadow Drive (and Anchor JS) with SvelteKit and with both packages, I'm getting a process is not defined error I think because both packages use process, a server-side feature, that somehow gets triggered on import into a regular typescript file. I think this is because SvelteKit uses Vite. I saw in the Anchor issues section, one person solved the Anchor issue by using...
define: { 'process.env.ANCHOR_BROWSER': true },
...in the vite.config.js file. This works! I was wondering if anyone knows what process.env to pass in for ShadowDrive?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentation

