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

Unable to install nuxt with @nuxt/content with pnpm #2733

Open
scottcarlton opened this issue Jul 26, 2024 · 1 comment
Open

Unable to install nuxt with @nuxt/content with pnpm #2733

scottcarlton opened this issue Jul 26, 2024 · 1 comment
Labels

Comments

@scottcarlton
Copy link

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

Copy link

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.

@github-actions github-actions bot added the Stale label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant