Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nuxt generate is imported by "virtual:#internal/nitro/virtual/storage", but could not be resolved – treating it as an external dependency. #26943

Closed
qcyblm opened this issue Apr 25, 2024 · 2 comments

Comments

@qcyblm
Copy link

qcyblm commented Apr 25, 2024

Environment


  • Operating System: Windows_NT
  • Node Version: v20.12.2
  • Nuxt Version: 3.11.2
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.6
  • Package Manager: pnpm@9.0.5
  • Builder: -
  • User Config: devtools
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://github.com/qcyblm/nuxt-mirror/tree/nuxt_project

Describe the bug

  1. pnpm install
  2. pnpm generate
  3. WARN
"file:///C:/Users/qcybl/Desktop/test_a/node_modules/.pnpm/nuxt@3.11.2_@parcel+watcher@2.4.1_@types+node@20.12.7_@unocss+reset@0.59.4_encoding@0.1.13_fl_qtpk2nxknkpuwuomaqqf2paf7u/node_modules/nuxt/dist/core/runtime/nitro/cache-driver.js" is imported by "virtual:#internal/nitro/virtual/storage", but could not be resolved – treating it as an external dependency.

Additional context

No response

Logs

> nuxt generate

Nuxt 3.11.2 with Nitro 2.9.6                                                                                  21:18:08
ℹ Using Nitro server preset: static                                                                          21:18:08
ℹ Building client...                                                                                         21:18:10
ℹ vite v5.2.10 building for production...                                                                    21:18:10
ℹ ✓ 107 modules transformed.                                                                                 21:18:11
ℹ .nuxt/dist/client/manifest.json                   1.94 kB │ gzip:  0.42 kB                                 21:18:12
ℹ .nuxt/dist/client/_nuxt/error-500.BOCRP2Ph.css    1.88 kB │ gzip:  0.72 kB                                 21:18:12
ℹ .nuxt/dist/client/_nuxt/error-404.EzKNKnTL.css    3.56 kB │ gzip:  1.10 kB                                 21:18:12
ℹ .nuxt/dist/client/_nuxt/entry.8FAGU-ch.css       12.40 kB │ gzip:  2.56 kB                                 21:18:12
ℹ .nuxt/dist/client/_nuxt/DoRJktTM.js               2.74 kB │ gzip:  1.23 kB                                 21:18:12
ℹ .nuxt/dist/client/_nuxt/Dt8Gnm6o.js               7.38 kB │ gzip:  3.09 kB                                 21:18:12
ℹ .nuxt/dist/client/_nuxt/CU_dvxCF.js             209.59 kB │ gzip: 60.01 kB                                 21:18:12
ℹ ✓ built in 1.12s                                                                                           21:18:12
✔ Client built in 1134ms                                                                                     21:18:12
ℹ Building server...                                                                                         21:18:12
ℹ vite v5.2.10 building SSR bundle for production...                                                         21:18:12
ℹ ✓ 61 modules transformed.                                                                                  21:18:12
ℹ .nuxt/dist/server/_nuxt/entry-styles.4TWsB0be.mjs             0.08 kB                                      21:18:12
ℹ .nuxt/dist/server/_nuxt/error-500-styles.C7yYj8ub.mjs         0.08 kB                                      21:18:12
ℹ .nuxt/dist/server/_nuxt/error-404-styles.3znUd_qX.mjs         0.08 kB                                      21:18:12
ℹ .nuxt/dist/server/styles.mjs                                  1.57 kB                                      21:18:12
ℹ .nuxt/dist/server/_nuxt/error-500-styles-1.mjs-QaOm1ZgB.js    2.10 kB │ map:   0.12 kB                     21:18:12
ℹ .nuxt/dist/server/_nuxt/error-404-styles-1.mjs-DmcWj1Wz.js    3.80 kB │ map:   0.12 kB                     21:18:12
ℹ .nuxt/dist/server/_nuxt/error-500-CyzElVLl.js                 4.01 kB │ map:   4.65 kB                     21:18:12
ℹ .nuxt/dist/server/_nuxt/multipart-parser-BaDqkqCr.js          7.33 kB │ map:  10.89 kB                     21:18:12
ℹ .nuxt/dist/server/_nuxt/error-404-DyRhTAlw.js                11.71 kB │ map:  23.14 kB                     21:18:12
ℹ .nuxt/dist/server/_nuxt/entry-styles-1.mjs-ClVvDAKX.js       12.65 kB │ map:   0.11 kB                     21:18:12
ℹ .nuxt/dist/server/server.mjs                                306.29 kB │ map: 464.15 kB                     21:18:12
ℹ ✓ built in 697ms                                                                                           21:18:12
✔ Server built in 704ms                                                                                      21:18:12
ℹ Initializing prerenderer                                                                             nitro 21:18:12

[21:18:13]  WARN  "file:///C:/Users/qcybl/Desktop/test_a/node_modules/.pnpm/nuxt@3.11.2_@parcel+watcher@2.4.1_@types+node@20.12.7_@unocss+reset@0.59.4_encoding@0.1.13_fl_qtpk2nxknkpuwuomaqqf2paf7u/node_modules/nuxt/dist/core/runtime/nitro/cache-driver.js" is imported by "virtual:#internal/nitro/virtual/storage", but could not be resolved – treating it as an external dependency.

ℹ Prerendering 3 initial routes with crawler                                                           nitro 21:18:13
  ├─ /200.html (48ms)                                                                                   nitro 21:18:14
  ├─ /404.html (48ms)                                                                                   nitro 21:18:14
  ├─ / (54ms)                                                                                           nitro 21:18:14
  ├─ /_payload.json?a11bce88-097b-4d8d-8181-bdf7fa6d7fb1 (2ms) (skipped)                                nitro 21:18:14
  ├─ /_payload.json (2ms)                                                                               nitro 21:18:14
ℹ Prerendered 4 routes in 1.239 seconds                                                                nitro 21:18:14
✔ Generated public .output/public                                                                      nitro 21:18:14
✔ You can preview this build using npx serve .output/public                                            nitro 21:18:14
✔ You can now deploy .output/public to any static hosting!                                                   21:18:14
@ilasw
Copy link

ilasw commented Apr 30, 2024

hi @qcyblm , same problem here. Installing dependencies using yarn and running yarn run generate solved the problem

@qcyblm
Copy link
Author

qcyblm commented May 4, 2024

@ilasw Thanks!

@qcyblm qcyblm closed this as completed May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants