Skip to content

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

@phillipmohr

Description

@phillipmohr

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/@nuxtjs+ngrok@3.0.1_magicast@0.3.5_rollup@4.23.0_webpack-sources@3.2.3/node_modules/@nuxtjs/ngrok/dist/runtime/server/plugins/ngrok.mjs"


undefined
Error:  Could not resolve "../../../utils" from "node_modules/.pnpm/@nuxtjs+ngrok@3.0.1_magicast@0.3.5_rollup@4.23.0_webpack-sources@3.2.3/node_modules/@nuxtjs/ngrok/dist/runtime/server/plugins/ngrok.mjs"
  at getRollupError (node_modules/.pnpm/rollup@4.23.0/node_modules/rollup/dist/es/shared/parseAst.js:393:41)
  at error (node_modules/.pnpm/rollup@4.23.0/node_modules/rollup/dist/es/shared/parseAst.js:389:42)
  at ModuleLoader.handleInvalidResolvedId (node_modules/.pnpm/rollup@4.23.0/node_modules/rollup/dist/es/shared/node-entry.js:19329:24)
  at node_modules/.pnpm/rollup@4.23.0/node_modules/rollup/dist/es/shared/node-entry.js:19289:26 

Error:  Could not resolve "../../../utils" from "node_modules/.pnpm/@nuxtjs+ngrok@3.0.1_magicast@0.3.5_rollup@4.23.0_webpack-sources@3.2.3/node_modules/@nuxtjs/ngrok/dist/runtime/server/plugins/ngrok.mjs"ELIFECYCLECommand 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:
1f5a3f7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions