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
When using sveltekit starter script with vite, I cannot import typewriter. This code fails:
import{Editor}from"typewriter-editor"
Cannot find module '/Users/bazhenov/Developer/sveltekit-typewriter/node_modules/@typewriter/document/lib/EditorRange' imported from /Users/bazhenov/Developer/sveltekit-typewriter/node_modules/@typewriter/document/lib/index.js
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/bazhenov/Developer/sveltekit-typewriter/node_modules/@typewriter/document/lib/EditorRange' imported from /Users/bazhenov/Developer/sveltekit-typewriter/node_modules/@typewriter/document/lib/index.js
at new NodeError (node:internal/errors:387:5)
at finalizeResolution (node:internal/modules/esm/resolve:404:11)
at moduleResolve (node:internal/modules/esm/resolve:965:10)
at defaultResolve (node:internal/modules/esm/resolve:1173:11)
at nextResolve (node:internal/modules/esm/loader:173:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:852:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:439:18)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)
at link (node:internal/modules/esm/module_job:75:36)
I'm getting the same issue. The file EditorRange.js exists in the location. Does it need the .js to work? Why does Vite not automatically add it if so? Anyone know Vite well enough?
When using sveltekit starter script with vite, I cannot import typewriter. This code fails:
You can reproduce error running
npm run dev
on repository https://github.com/bazhenov/sveltekit-typewriter-bug:Navigate to http://localhost:5173/
The text was updated successfully, but these errors were encountered: