atidone icon indicating copy to clipboard operation
atidone copied to clipboard

Can not run locally via pnpm dev - Package import specifier "#internal/nitro/virtual/app-config" is not defined

Open gwynhokkers opened this issue 6 months ago • 3 comments

I' m having an issue running this locally, strangely it deploys fine to Cloudflare - but I am unable to run it via dev.

ERROR  [worker reload] [worker init] Package import specifier "#internal/nitro/virtual/app-config" is not defined in package /Users/gh/Documents/code/nuxt/edge-todo/node_modules/.pnpm/[email protected][email protected]_@[email protected][email protected]/node_modules/nitropack/package.json imported from /Users/gh/Documents/code/nuxt/edge-todo/node_modules/.pnpm/[email protected][email protected]_@[email protected][email protected]/node_modules/nitropack/dist/runtime/config.mjs

This is a fresh install cloned directly from the repo.

Package.json

{
  "private": true,
  "scripts": {
    "dev": "nuxi dev",
    "build": "nuxi build",
    "preview": "nuxt preview",
    "db:generate": "drizzle-kit generate",
    "lint": "eslint .",
    "postinstall": "nuxt prepare"
  },
  "dependencies": {
    "@iconify-json/simple-icons": "^1.1.107",
    "@nuxt/eslint": "^0.3.13",
    "@nuxt/ui": "^2.17.0",
    "@nuxthub/core": "^0.7.0",
    "drizzle-kit": "^0.22.7",
    "drizzle-orm": "0.31.2",
    "h3-zod": "^0.5.3",
    "nuxt": "^3.12.2",
    "nuxt-auth-utils": "^0.1.0",
    "zod": "^3.23.8"
  },
  "devDependencies": {
    "@nuxt/devtools": "^1.3.7",
    "@nuxt/eslint-config": "^0.3.13",
    "eslint": "^9.5.0",
    "typescript": "5.5.2",
    "wrangler": "^3.62.0"
  }
}

Running on an M2 2022 MacBook Air. Tried on Node: v22.5.1 and v20.16.0 using pnpm v9.6.0

I have a similar issue trying to run the nuxt-ui-pro/docs template.

gwynhokkers avatar Jul 26 '24 10:07 gwynhokkers