question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(Windows) [vite] Internal server error: Missing "./dist/vue.js" export in "@islands/hydration" package, after run of `npm run dev`

See original GitHub issue

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 📷

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ohuucommented, Sep 12, 2022

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

1reaction
mrauhucommented, Aug 16, 2022

Which package manager are you using?

@ElMassimo NPM.

npm -v
8.5.5

node -v
v16.15.0

Checked with the pnpm, same error.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found