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
Add @nuxt/content package in your nuxt project in dependencies (not dev) "@nuxt/content": "^2.12.1",
Run npm i --omit=dev
Run npm run dev or npm run build
See an error similar to this: Cannot find package 'github-slugger' imported from /some/path/here/index.mjs
Describe the bug
When installinging dependencies without dev-dependencies using --omit=dev the @nuxt/content seems to miss dependencies to github-slugger.
Important note: If you install all dependencies (including dev) by using npm i everything works as expected.
Additional context
No response
Logs
ERROR Cannot find package 'github-slugger' imported from /some/path/here/.nuxt/prerender/index.mjs 9:45:40 AM
at packageResolve (node:internal/modules/esm/resolve:853:9)
at moduleResolve (node:internal/modules/esm/resolve:910:20)
at defaultResolve (node:internal/modules/esm/resolve:1130:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36)
ERROR Cannot find package 'github-slugger' imported from /some/path/here/.nuxt/prerender/index.mjs 9:45:40 AM
The text was updated successfully, but these errors were encountered:
remluben
changed the title
next/content missing dependency when dependencies installed with --omit=dev
Possible bug with missing dependency when dependencies installed with --omit=devMay 6, 2024
Environment
Reproduction
@nuxt/content
package in your nuxt project in dependencies (not dev)"@nuxt/content": "^2.12.1",
npm i --omit=dev
npm run dev
ornpm run build
Cannot find package 'github-slugger' imported from /some/path/here/index.mjs
Describe the bug
When installinging dependencies without dev-dependencies using
--omit=dev
the@nuxt/content
seems to miss dependencies togithub-slugger
.Important note: If you install all dependencies (including dev) by using
npm i
everything works as expected.Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: