-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Invalid module “node_modules/.bin/vite-ssr” #77
Comments
Actually having the same exact issue here. |
I'm using Yarn in this project and haven't tested with PNPM. Can you check if any of these work?
|
For more context, I was working off a windows machine and having this issue. We have devs on mac and linux and not running into this issue. |
I'm also facing this issue even with When using Error: Build failed with 1 error:
node_modules/vite/dist/node/chunks/dep-9c153816.js:29537:10: ERROR: [plugin: vite:dep-scan] Failed to resolve entry for package "vitedge". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "vitedge". The package may have incorrect main/module/exports specified in its package.json.
at failureErrorWithLog (/home/hello/Development/vite-ssr-project/node_modules/vite/node_modules/esbuild/lib/main.js:1605:15)
at /home/hello/Development/vite-ssr-project/node_modules/vite/node_modules/esbuild/lib/main.js:1251:28
at runOnEndCallbacks (/home/hello/Development/vite-ssr-project/node_modules/vite/node_modules/esbuild/lib/main.js:1036:63)
at buildResponseToResult (/home/hello/Development/vite-ssr-project/node_modules/vite/node_modules/esbuild/lib/main.js:1249:7)
at /home/hello/Development/vite-ssr-project/node_modules/vite/node_modules/esbuild/lib/main.js:1358:14
at /home/hello/Development/vite-ssr-project/node_modules/vite/node_modules/esbuild/lib/main.js:668:9
at handleIncomingPacket (/home/hello/Development/vite-ssr-project/node_modules/vite/node_modules/esbuild/lib/main.js:765:9)
at Socket.readFromStdout (/home/hello/Development/vite-ssr-project/node_modules/vite/node_modules/esbuild/lib/main.js:635:7)
at Socket.emit (node:events:520:28)
at Socket.emit (node:domain:475:12) {
errors: [
{
detail: Error: Failed to resolve entry for package "vitedge". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "vitedge". The package may have incorrect main/module/exports specified in its package.json.
at packageEntryFailure (/home/hello/Development/vite-ssr-project/node_modules/vite/dist/node/chunks/dep-9c153816.js:29537:11)
at resolvePackageEntry (/home/hello/Development/vite-ssr-project/node_modules/vite/dist/node/chunks/dep-9c153816.js:29533:9)
at tryNodeResolve (/home/hello/Development/vite-ssr-project/node_modules/vite/dist/node/chunks/dep-9c153816.js:29349:20)
at Context.resolveId (/home/hello/Development/vite-ssr-project/node_modules/vite/dist/node/chunks/dep-9c153816.js:29166:28)
at Object.resolveId (/home/hello/Development/vite-ssr-project/node_modules/vite/dist/node/chunks/dep-9c153816.js:38271:55)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async resolve (/home/hello/Development/vite-ssr-project/node_modules/vite/dist/node/chunks/dep-9c153816.js:38474:26)
at async /home/hello/Development/vite-ssr-project/node_modules/vite/dist/node/chunks/dep-9c153816.js:38612:34
at async callback (/home/hello/Development/vite-ssr-project/node_modules/vite/node_modules/esbuild/lib/main.js:923:28)
at async handleRequest (/home/hello/Development/vite-ssr-project/node_modules/vite/node_modules/esbuild/lib/main.js:703:30),
location: [Object],
notes: [Array],
pluginName: 'vite:dep-scan',
text: 'Failed to resolve entry for package "vitedge". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "vitedge". The package may have incorrect main/module/exports specified in its package.json.'
}
],
warnings: []
}
Done in 1.15s. NOTE: I setup my project just like Getting Started page suggests. |
Hi, I have the same issue. Has anyone found a solution ? |
I just installed WSL 2, installed nvm (node 18) on it and everything worked. |
I'm facing this issue by following the Get Started guide and trying out the template at /examples/vue
NODE: Have tried with both version 16, 18 and 19 Any way to make this work? |
@castint |
@PiotrBaczkowski e.g Thanks in advance. |
Error: Invalid module “node_modules/.bin/vite-ssr”
#74 ⬅️ I had a similar problem to this in version 0.18.1
I had a problem configuring my own vitedge-time project, and then used the initial https://github.com/frandiox/vitessedge-template project as the minimum unit test, which also reproduced the problem
node: v16.13.0;
npm: 8.1.0;
system: MacOS;
The text was updated successfully, but these errors were encountered: