Open therealokoro opened 2 days ago
Would you be able to provide a reproduction? 🙏
I just upgraded to Nuxt 3.12 and getting the same strange port. I thought the HMR port should be the same as the dev server port (3000).
On top of that, I am also seeing this strange error:
Uncaught SyntaxError: The requested module '/_nuxt/node_modules/.pnpm/@vue+devtools-core@7.3.5_vite@5.3.2_vue@3.4.31/node_modules/@vue/devtools-core/dist/index.js?v=abef60fd' does not provide an export named 'initAppSeparateWindow' (at overlay.mjs:2:10)
There seems to be a workaround by manually setting the vite HMR port to 3000. This fixes the problem. I have no idea why 3000 is not set by default.
server: {
hmr: {
clientPort: 3000
},
},
------------------------------
- Operating System: Ubuntu 22.04.4 LTS
- Node Version: v18.14.2
- Nuxt Version: 3.12.0-28587627.2d1ab61b
- CLI Version: 3.12.0
- Nitro Version: 2.10.0-28659787.86930878
- Package Manager: pnpm@8.6.12
- Builder: -
- User Config: extends
- Runtime Modules: -
- Build Modules: -
------------------------------
@danielroe Oh, I just noticed you asked for a reproduction, here it is. Best seen when running locally so I didn't put it on Stackblitz.
https://github.com/martinszeltins/nuxt-port-devtools-issue
There are 2 issues:
client:732 GET http://localhost:24678/_nuxt/ net::ERR_CONNECTION_REFUSED
Uncaught SyntaxError: The requested module '/_nuxt/node_modules/.pnpm/@vue+devtools-core@7.3.5_vite@5.3.2_vue@3.4.31/node_modules/@vue/devtools-core/dist/index.js?v=98b89a8d' does not provide an export named 'initAppSeparateWindow' (at overlay.mjs:2:10)
Screenshot:
Thanks for the reproduction @martinszeltins. I add that. Good to see that i'm not the only one with the issue
Environment
Nuxt project info: 1:31:40 AM
Build Modules: -
Reproduction
[]( )
Describe the bug
I keep getting this error and log in the console every single time when running the development server of nuxt and I have absolutely know idea why.
Though it doesn't break the development server as one would think, but it's just so frustrating to see each time
Additional context
Logs
No response