nitro icon indicating copy to clipboard operation
nitro copied to clipboard

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

Open daniluk4000 opened this issue 1 year ago • 5 comments

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 avatar May 17 '24 10:05 daniluk4000

This looks sus

image

daniluk4000 avatar May 17 '24 10:05 daniluk4000

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

daniluk4000 avatar May 17 '24 11:05 daniluk4000

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.

pi0 avatar May 17 '24 11:05 pi0

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 avatar May 17 '24 11:05 daniluk4000

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 (https://github.com/getsentry/sentry-javascript/issues/12114) but I don't know if this should be fixed on their side or on Nitro side.

daniluk4000 avatar May 20 '24 11:05 daniluk4000