Closed avivash closed 1 year ago
We dont use require either, im but sure the svelte-preprocess-react package is the culprit.
Does the application build and run without errors if you dont use any of the react components?
@bfanger it looks like it was an issue with the react library i was using. the team who created it is going to work on launching a framework agnostic SDK, so I'll use that moving forward. Closing this for now. Thanks!
Hi, thanks for making this package, it's great!
I am seeing a couple issues in my sveltekit app when deploying it as an SPA though.
The first issue is a
global is not defined
error, even though I haveinside my
vite.config
:If i then manually set
global = window
in myapp.html
, I get the followingrequire is not defined
error even though i have norequire
s in my code:Any help you can offer would be much appreciated, thanks!