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
Describe the bug trpc-sveltekit cannot be imported
To Reproduce
Steps to reproduce the behavior:
copy bookstall folder from examples somewhere in your filesystem (e.g., into /tmp/, so that it does not have the package source in one of the parent directories)
cd in to the bookstall folder you just copied and run npm install
run npm run dev
open browser to see the error
Expected behavior
the example should work without errors
Full Error
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/tmp/bookstall/node_modules/trpc-sveltekit/dist/client' imported from /tmp/bookstall/node_modules/trpc-sveltekit/dist/index.js
at new NodeError (node:internal/errors:372:5)
at finalizeResolution (node:internal/modules/esm/resolve:405:11)
at moduleResolve (node:internal/modules/esm/resolve:964:10)
at defaultResolve (node:internal/modules/esm/resolve:1173:11)
at ESMLoader.resolve (node:internal/modules/esm/loader:604:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:318:18)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:80:40)
at link (node:internal/modules/esm/module_job:78:36)
Desktop:
OS: Ubuntu 22.04.1
Browser: Chorme
Version 107.0.5304.110
Additional context
The same problem arises when installing trpc-sveltekit from npm in any other project. Interestingly, copying the package folder containing the source of the trpc-sveltekit package in the root of the project and installing it with npm install package/ fixes the issue.
The text was updated successfully, but these errors were encountered:
Describe the bug
trpc-sveltekit
cannot be importedTo Reproduce
Steps to reproduce the behavior:
bookstall
folder fromexamples
somewhere in your filesystem (e.g., into/tmp/
, so that it does not have the package source in one of the parent directories)bookstall
folder you just copied and runnpm install
npm run dev
Expected behavior
the example should work without errors
Full Error
Desktop:
Additional context
The same problem arises when installing
trpc-sveltekit
from npm in any other project. Interestingly, copying thepackage
folder containing the source of thetrpc-sveltekit
package in the root of the project and installing it withnpm install package/
fixes the issue.The text was updated successfully, but these errors were encountered: