You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@svelte-parts/editor is incorrectly packaged. Please contact the package author to fix.
7:39:52 PM [vite] Error when evaluating SSR module /node_modules/codemirror/lib/codemirror.js?v=4b019038:
ReferenceError: navigator is not defined
at /node_modules/codemirror/lib/codemirror.js?v=4b019038:18:19
at /node_modules/codemirror/lib/codemirror.js?v=4b019038:13:49
at /node_modules/codemirror/lib/codemirror.js?v=4b019038:14:2
at instantiateModule (node_modules/vite/dist/node/chunks/dep-7817f5b4.js:67424:15)
Any idea why this might be happening? Or how I can fix it?
The text was updated successfully, but these errors were encountered:
codemirror, the underlying library only works in a browser context.
As your error starts with [vite] Error when evaluating SSR module, I assume you trying to prerender the component on the server.
Or how I can fix it?
I do not know much about vite, sorry. I think you need to somehow tell it to render the component only when in the browser.
I'm trying to use the editor package, almost exactly as you've recommended in the readme
But I get the following error
Any idea why this might be happening? Or how I can fix it?
The text was updated successfully, but these errors were encountered: