You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[info] [nitro] Building Nuxt Nitro server (preset: cloudflare-pages, compatibility date: 2024-12-19)
16:05:09.567
[error] [nitro] Error: Could not load /opt/buildhome/repo/node_modules/unenv/runtime/npm/consola.mjs (imported by node_modules/@nuxt/icon/dist/runtime/server/api.js): ENOENT: no such file or directory, open '/opt/buildhome/repo/node_modules/unenv/runtime/npm/consola.mjs'
16:05:09.567
16:05:09.568
16:05:09.568
undefined
16:05:09.568
[error] Could not load /opt/buildhome/repo/node_modules/unenv/runtime/npm/consola.mjs (imported by node_modules/@nuxt/icon/dist/runtime/server/api.js): ENOENT: no such file or directory, open '/opt/buildhome/repo/node_modules/unenv/runtime/npm/consola.mjs'
16:05:09.568
16:05:09.568
16:05:09.568
[error] Could not load /opt/buildhome/repo/node_modules/unenv/runtime/npm/consola.mjs (imported by node_modules/@nuxt/icon/dist/runtime/server/api.js): ENOENT: no such file or directory, open '/opt/buildhome/repo/node_modules/unenv/runtime/npm/consola.mjs'
Only Nuxt UI 3 and Nuxthub are in modules. When both are active the error is:
Could not load /Users/demhat/Developer/Projects/otopilot/node_modules/unenv/runtime/npm/consola.mjs (imported by node_modules/@nuxt/icon/dist/runtime/server/api.js): ENOENT: no such file or directory, open '/Users/demhat/Developer/Projects/otopilot/node_modules/unenv/runtime/npm/consola.mjs'
When only Nuxthub is active, the error is:
Could not load /Users/demhat/Developer/Projects/otopilot/node_modules/unenv/runtime/npm/mime.mjs (imported by node_modules/@nuxthub/core/dist/runtime/blob/server/utils/blob.js): ENOENT: no such file or directory, open '/Users/demhat/Developer/Projects/otopilot/node_modules/unenv/runtime/npm/mime.mjs'
Everything works well in the dev server but does not let build.
UPDATE: When I changed the pm from BUN to PNPM problem was solved. Bun pm causes the problem.
Environment
Reproduction
Describe the bug
I'm getting this error that says Enoent no such file or folder node_modules/unenv/runtime/npm/consola.mjs when building on Cloudflare pages.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: