Skip to content
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

[nightly] Could not resolve entry module "node_modules/nitropack/dist/chunks/runtime/node-server" #2448

Closed
daniluk4000 opened this issue May 17, 2024 · 5 comments · Fixed by #2459

Comments

@daniluk4000
Copy link

Environment

Nitro 2.10.0-28597966.b2831dd5, Node 20 latest

Reproduction

I'll be happy to create repro if it will be needed but let me create this one without repro for now

Describe the bug

I'm currently on Nuxt Nightly (for some of bug fixes), we updated nitro today and our project sadly stopped building

image

image

Additional context

I've pinned nitro to 2.10.0-28585081.346a4950 and it builds just fine

Logs

No response

@daniluk4000
Copy link
Author

This looks sus

image

@daniluk4000
Copy link
Author

Latest nuxt nightly also fails for me with Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/frontend/.output/server/node_modules/@opentelemetry/instrumentation/hook.mjs' imported from /frontend/.output/server/node_modules/@sentry/node/esm/sdk/init.js

I don't know what changed there...

@pi0 pi0 changed the title Could not resolve entry module "node_modules/nitropack/dist/chunks/runtime/node-server" [nightly] Could not resolve entry module "node_modules/nitropack/dist/chunks/runtime/node-server" May 17, 2024
@pi0
Copy link
Member

pi0 commented May 17, 2024

Thanks for reporting. Ill look into it. For context nitro main branch is going under heavy refactors to prepare for v3 so more issues like this are likely to happen on nightly channel.

@daniluk4000
Copy link
Author

Thanks for reporting. Ill look into it. For context nitro main branch is going under heavy refactors to prepare for v3 so more issues like this are likely to happen on nightly channel.

Thanks! We'll keep it pinned then :)

@daniluk4000
Copy link
Author

Latest nuxt nightly also fails for me with Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/frontend/.output/server/node_modules/@opentelemetry/instrumentation/hook.mjs' imported from /frontend/.output/server/node_modules/@sentry/node/esm/sdk/init.js

I don't know what changed there...

Btw this seems like upstream issue from Sentry (getsentry/sentry-javascript#12114) but I don't know if this should be fixed on their side or on Nitro side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants