(Windows) [vite] Internal server error: Missing "./dist/vue.js" export in "@islands/hydration" package, after run of `npm run dev`
See original GitHub issue- I have read the troubleshooting section before opening an issue.
- I have tried upgrading
iles
andvite
.
Description 📖
On Windows run of the npm run dev
command will produce errors:
[vite] Internal server error: Missing "./dist/vue.js" export in "@islands/hydration" package
at bail (file:///C:/Projects/iles-app/node_modules/vite/dist/node/chunks/dep-74663fff.js:33612:8)
at resolve (file:///C:/Projects/iles-app/node_modules/vite/dist/node/chunks/dep-74663fff.js:33689:10)
at resolveExports (file:///C:/Projects/iles-app/node_modules/vite/dist/node/chunks/dep-74663fff.js:34675:12)
at resolveDeepImport (file:///C:/Projects/iles-app/node_modules/vite/dist/node/chunks/dep-74663fff.js:34693:31)
at tryNodeResolve (file:///C:/Projects/iles-app/node_modules/vite/dist/node/chunks/dep-74663fff.js:34410:20)
at Context.resolveId (file:///C:/Projects/iles-app/node_modules/vite/dist/node/chunks/dep-74663fff.js:34147:32)
at Object.resolveId (file:///C:/Projects/iles-app/node_modules/vite/dist/node/chunks/dep-74663fff.js:35469:55)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Context.resolve (file:///C:/Projects/iles-app/node_modules/vite/dist/node/chunks/dep-74663fff.js:35234:23)
at async Object.resolveId (file:///C:/Projects/iles-app/node_modules/vite/dist/node/chunks/dep-74663fff.js:35469:32)
[vite] Internal server error: Missing "./dist/hydration.js" export in "@islands/hydration" package
at bail (file:///C:/Projects/iles-app/node_modules/vite/dist/node/chunks/dep-74663fff.js:33612:8)
at resolve (file:///C:/Projects/iles-app/node_modules/vite/dist/node/chunks/dep-74663fff.js:33689:10)
at resolveExports (file:///C:/Projects/iles-app/node_modules/vite/dist/node/chunks/dep-74663fff.js:34675:12)
at resolveDeepImport (file:///C:/Projects/iles-app/node_modules/vite/dist/node/chunks/dep-74663fff.js:34693:31)
at tryNodeResolve (file:///C:/Projects/iles-app/node_modules/vite/dist/node/chunks/dep-74663fff.js:34410:20)
at Context.resolveId (file:///C:/Projects/iles-app/node_modules/vite/dist/node/chunks/dep-74663fff.js:34147:32)
at Object.resolveId (file:///C:/Projects/iles-app/node_modules/vite/dist/node/chunks/dep-74663fff.js:35469:55)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Context.resolve (file:///C:/Projects/iles-app/node_modules/vite/dist/node/chunks/dep-74663fff.js:35234:23)
at async Object.resolveId (file:///C:/Projects/iles-app/node_modules/vite/dist/node/chunks/dep-74663fff.js:35469:32)
Similar to #161, maybe the file://
prefix is also needed for running the dev
script on Windows.
Reproduction 🐞
On Windows:
npm init iles@latest
cd iles-app
npm i
npm run dev
Dependencies Info
Run npx iles info
and pnpm list
(or npm list
) and provide the output:
iles v0.8.3 vite v3.0.8
iles-app@0.0.0 C:\Projects\iles-app
+-- iles@0.8.3
+-- typescript@4.7.4
`-- vue-tsc@0.38.9
Screenshots 📷
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
[vite:dep-scan] missing export in package error when ... - GitHub
Describe the bug I have a npm package that includes both the src and dist folders. The package does not export types so...
Read more >Troubleshooting - Vite
Error : Cannot find module 'C:\foo\bar&baz\vite\bin\vite.js' #. The path to your project folder may include & , which doesn't work with npm on...
Read more >Why vite.js doesn't work when I use npm run dev
This was caused by esbuild#2177 (on which Vite depends), which was just recently reverted in esbuild version 0.14.36. This issue should no ...
Read more >vite-plugin-nightwatch - npm
Component testing plugin that integrates Vite with Nightwatch.js. Supports Vue and React components.. Latest version: 0.3.2, last published: ...
Read more >Failed to load config from vite.config.js - Laracasts
I have a fresh Laravel installation with Jetstream/Interia but when I run 'npm install && npm run dev' I get the error 'failed...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My bad. Turns out yarn doesn’t automatically upgrade indirect dependencies, so I was still on
@islands/hydration@0.8.0
.0.8.1
does indeed fix the issue. Sorry for the noise@ElMassimo NPM.
Checked with the
pnpm
, same error.