content
content copied to clipboard
Unable to install nuxt with @nuxt/content with pnpm
Environment
- Operating System:
Darwin - Node Version:
v18.20.2 - Nuxt Version:
3.12.3 - CLI Version:
3.12.0 - Nitro Version:
2.9.7 - Package Manager:
[email protected] - Builder:
- - User Config:
compatibilityDate,devtools,modules - Runtime Modules:
@nuxt/[email protected],@nuxt/[email protected] - Build Modules:
-
Reproduction
pnpm dlx nuxi@latest init <project-name>
cd <project-name>
pnpm add @nuxt/content
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
devtools: { enabled: true },
modules: ['@nuxt/content', "@nuxt/image"],
content: {}
})
Describe the bug
(index):88 GET http://localhost:3000/ 503 (Service Unavailable)
ERROR [worker reload] [worker init] Cannot find package 'unified' imported from /Users/username/Sites/<project-name>/.nuxt/dev/index.mjs
Did you mean to import [email protected]/node_modules/unified/index.js?
Did you mean to import [email protected]/node_modules/unified/index.js?
at __node_internal_captureLargerStackTrace (node:internal/errors:496:5)
at new NodeError (node:internal/errors:405:5)
at packageResolve (node:internal/modules/esm/resolve:916:9)
at moduleResolve (node:internal/modules/esm/resolve:973:20)
at defaultResolve (node:internal/modules/esm/resolve:1193:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:404:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:373:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:250:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:39)
at link (node:internal/modules/esm/module_job:75:36)
Additional context
Not sure what else I can add here since this is just basic setup stuff.
Logs
No response
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
This issue was closed because it has been stalled for 30 days with no activity.