Uncomment the line in the nitro config which traces the package manually
Rebuild and restart
Describe the bug
When using lexical, Nitro does not include the node-specific package (Lexical.node.mjs in the final artifact. This leads to the following error in prod: Cannot find module '/home/projects/github-br8xh5/.output/server/node_modules/lexical/Lexical.node.mjs' imported from /home/projects/github-br8xh5/.output/server/chunks/routes/index.mjs
Environment
Stackblitz
Reproduction
pnpm build
To "fix"
Describe the bug
When using
lexical
, Nitro does not include the node-specific package (Lexical.node.mjs
in the final artifact. This leads to the following error in prod:Cannot find module '/home/projects/github-br8xh5/.output/server/node_modules/lexical/Lexical.node.mjs' imported from /home/projects/github-br8xh5/.output/server/chunks/routes/index.mjs
Additional context
Originally reported in https://github.com/nuxt/nuxt/issues/27784
Logs
No response