ngrok-module icon indicating copy to clipboard operation
ngrok-module copied to clipboard

Could not resolve "../../../utils" when running `pnpm run build` in Nuxt 3

Open phillipmohr opened this issue 4 months ago • 2 comments

I'm using the following module version "@nuxtjs/ngrok": "^3.0.1" and my Nuxt version is"nuxt": "^3.12.2" I'm getting this error message when running pnpm run build in Nuxt 3.

Error:  [nitro] RollupError: Could not resolve "../../../utils" from "node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@nuxtjs/ngrok/dist/runtime/server/plugins/ngrok.mjs"


undefined
Error:  Could not resolve "../../../utils" from "node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@nuxtjs/ngrok/dist/runtime/server/plugins/ngrok.mjs"
  at getRollupError (node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/parseAst.js:393:41)
  at error (node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/parseAst.js:389:42)
  at ModuleLoader.handleInvalidResolvedId (node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:19329:24)
  at node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:19289:26 

Error:  Could not resolve "../../../utils" from "node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@nuxtjs/ngrok/dist/runtime/server/plugins/ngrok.mjs"
 ELIFECYCLE  Command failed with exit code 1.
Error: Process completed with exit code 1.

Is this a known issue?

I saw the utils have been moved not long ago. This commit might be related: https://github.com/nuxt-modules/ngrok/commit/1f5a3f7422a1171168afa6221cfa492b3b2fdf1a

phillipmohr avatar Oct 01 '24 16:10 phillipmohr