Adding NuxtHub module causes errors in other dependencies during build · Issue #513 · nuxt-hub/core · GitHub
More Web Proxy on the site http://driver.im/
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
Describe the bug
Adding the @nuxthub/core module to the project breaks the nuxt build command, but the errors come from a different module.
This might have something to do with the cloudflare-pages preset for nitro 🤔
My Nuxt 3 project with deployment to NuxtHub worked fine until I tried to add the @reown/appkit packages for crypto wallets functionality.
I'm not quite sure if this is the right place to submit an issue (could be the @reown/appkit problem), but removing the @nuxthub/core module does fix the problem and allows the build command to run successfully.
The error itself is quite cryptic:
Cannot resolve "pino-pretty" from "/my-app/node_modules/pino/lib/tools.js" and externals are not allowed!
Installing pino and pino-pretty does not resolve the issue.
I have also tried adding this configuration in my nuxt.config.ts, but this led me to another "externals" error:
Cannot resolve "node:string_decoder/" from "/app/node_modules/keccak/node_modules/readable-stream/lib/_stream_readable.js" and externals are not allowed!
In my case, it's a conflict with playwright/nuxthub/nuxt-seo
If I build in the state I have this error:
[nitro 4:08:41 PM] ERROR Error: Cannot resolve
"D:/Dev/project/node_modules/.pnpm/nuxt-og-image@5.0.4_@unhead_a708d75e3ee8de951b0e218395157c4e/node_modules/nuxt-og-image/dist/runtime/mock/proxy-cjs/index.js"
from
"D:\\Dev\\project\\node_modules\\.pnpm\\playwright-core@1.51.0\\node_modules\\playwright-core\\lib\\server\\electron\\electron.js"
and externals are not allowed!
at Object.resolveId (/D:/Dev/project/node_modules/.pnpm/nitropack@2.11.8/node_modules/nitropack/dist/rollup/index.mjs:2009:17)
at async PluginDriver.hookFirstAndGetPlugin (/D:/Dev/project/node_modules/.pnpm/rollup@4.38.0/node_modules/rollup/dist/es/shared/node-entry.js:22003:28)
at async resolveId (/D:/Dev/project/node_modules/.pnpm/rollup@4.38.0/node_modules/rollup/dist/es/shared/node-entry.js:20478:26)
at async ModuleLoader.resolveId (/D:/Dev/project/node_modules/.pnpm/rollup@4.38.0/node_modules/rollup/dist/es/shared/node-entry.js:20914:15)
at async PluginDriver.hookFirstAndGetPlugin (/D:/Dev/project/node_modules/.pnpm/rollup@4.38.0/node_modules/rollup/dist/es/shared/node-entry.js:22003:28)
at async resolveId (/D:/Dev/project/node_modules/.pnpm/rollup@4.38.0/node_modules/rollup/dist/es/shared/node-entry.js:20478:26)
at async ModuleLoader.resolveId (/D:/Dev/project/node_modules/.pnpm/rollup@4.38.0/node_modules/rollup/dist/es/shared/node-entry.js:20914:15)
at async /D:/Dev/project/node_modules/.pnpm/@rollup+plugin-commonjs@28.0.3_rollup@4.38.0/node_modules/@rollup/plugin-commonjs/dist/es/index.js:797:16
at async Promise.all (index 21)
at async /D:/Dev/project/node_modules/.pnpm/@rollup+plugin-commonjs@28.0.3_rollup@4.38.0/node_modules/@rollup/plugin-commonjs/dist/es/index.js:789:32
For some reason, if I remove playwright from my dependencies, the build works.
And conversely, if I delete NuxtHub, the build also works.
Describe the bug
Adding the
@nuxthub/core
module to the project breaks thenuxt build
command, but the errors come from a different module.This might have something to do with the
cloudflare-pages
preset for nitro 🤔My Nuxt 3 project with deployment to NuxtHub worked fine until I tried to add the @reown/appkit packages for crypto wallets functionality.
I'm not quite sure if this is the right place to submit an issue (could be the
@reown/appkit
problem), but removing the@nuxthub/core
module does fix the problem and allows thebuild
command to run successfully.The error itself is quite cryptic:
Installing
pino
andpino-pretty
does not resolve the issue.I have also tried adding this configuration in my
nuxt.config.ts
, but this led me to another "externals" error:Steps to reproduce
A minimal reproducible example on StackBlitz: https://stackblitz.com/edit/nuxt-starter-ksablssm?file=nuxt.config.ts
Running
npm run build
causes the described issue. Removing the@nuxthub/core
makes thenpm run build
command run successfully again.The setup of both packages is minimal and based on examples copied from the documentation.
Expected behavior
npm run build
/nuxt build
command executes successfully.The text was updated successfully, but these errors were encountered: