Overview
I just did a fresh clone to try and get setup. I ran:
corepack enable
pnpm i
pnpm dev
I get this error on the root page at localhost:3000
SyntaxError {▼
name: 'SyntaxError',
message: "The requested module
'file:///Users/devonwells/development/open-source/npmx.dev/node_modules/.pnpm/h3@2.0.1-rc.11/node_modules/h3/dist/_entries/node.mjs'
does not provide an export named 'sendError'",
stack: "The requested module 'file:///Users/devonwells/development/open-source/npmx.dev/node_modules/.pnpm/h3@2.0.1-rc.11/node_modules/h3/dist/_entries/node.mjs' does not provide an export named 'sendError'\n" +
'at /Users/devonwells/development/open-source/npmx.dev/.nuxt/dev/index.mjs:9:undefined:undefined:undefined)\n' +
' at #_instantiate (node:internal/modules/esm/module_job:249:21)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n' +
' at async ModuleJob.run (node:internal/modules/esm/module_job:357:5)\n' +
' at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:665:26)\n' +
' at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:99:5)',
unhandled: false,
[Symbol(Symbol.toStringTag)]: 'Error',
}
Looking into it a bit I noticed we're using a v2 rc version of h3 for the cli. My first thought was that somehow nuxt or nitro are resolving to the new version in the app instead of only for the cli (which seems odd but was initial thought).
So I tried a quick pnpm override to see if that'd solve, but am still getting the issue after that.
Branch here: (adding this as soon as I get contributor access)
This is what I get running pnpm why h3 -r with an override.
➜ npmx.dev git:(main) ✗ pnpm why h3 -r
Legend: production dependency, optional only, dev only
npmx /Users/devonwells/development/open-source/npmx.dev (PRIVATE)
dependencies:
@nuxt/fonts 0.13.0
├─┬ fontless 0.1.0
│ └─┬ unstorage 1.17.4
│ └── h3 1.15.5
├── h3 1.15.5
└─┬ unstorage 1.17.4
└── h3 1.15.5
@nuxt/scripts 0.13.2
├── h3 1.15.5
└─┬ unstorage 1.17.4
└── h3 1.15.5
@vueuse/nuxt 14.1.0
└─┬ nuxt 4.3.0 peer
├─┬ @nuxt/cli 3.32.0
│ └─┬ listhen 1.9.0
│ └── h3 1.15.5
└─┬ @nuxt/nitro-server 4.3.0
├── h3 1.15.5
└─┬ nitropack 2.13.1
├── h3 1.15.5
├─┬ listhen 1.9.0
│ └── h3 1.15.5
└─┬ unstorage 1.17.4
└── h3 1.15.5
devDependencies:
@nuxt/test-utils 3.23.0
├── h3 1.15.5
├── h3-next npm:h3@2.0.1-rc.11
└─┬ vitest-environment-nuxt 1.0.1
└─┬ @nuxt/test-utils 3.23.0
├── h3 1.15.5
└── h3-next npm:h3@2.0.1-rc.11
npmx-connector@0.0.1 /Users/devonwells/development/open-source/npmx.dev/cli
dependencies:
h3 2.0.1-rc.11
Will continue to look into it when I'm back from lunch, but posting for anyone else coming across.
Overview
I just did a fresh clone to try and get setup. I ran:
I get this error on the root page at localhost:3000
Looking into it a bit I noticed we're using a v2 rc version of
h3for the cli. My first thought was that somehow nuxt or nitro are resolving to the new version in the app instead of only for the cli (which seems odd but was initial thought).So I tried a quick pnpm override to see if that'd solve, but am still getting the issue after that.
Branch here: (adding this as soon as I get contributor access)
This is what I get running
pnpm why h3 -rwith an override.➜ npmx.dev git:(main) ✗ pnpm why h3 -r Legend: production dependency, optional only, dev only npmx /Users/devonwells/development/open-source/npmx.dev (PRIVATE) dependencies: @nuxt/fonts 0.13.0 ├─┬ fontless 0.1.0 │ └─┬ unstorage 1.17.4 │ └── h3 1.15.5 ├── h3 1.15.5 └─┬ unstorage 1.17.4 └── h3 1.15.5 @nuxt/scripts 0.13.2 ├── h3 1.15.5 └─┬ unstorage 1.17.4 └── h3 1.15.5 @vueuse/nuxt 14.1.0 └─┬ nuxt 4.3.0 peer ├─┬ @nuxt/cli 3.32.0 │ └─┬ listhen 1.9.0 │ └── h3 1.15.5 └─┬ @nuxt/nitro-server 4.3.0 ├── h3 1.15.5 └─┬ nitropack 2.13.1 ├── h3 1.15.5 ├─┬ listhen 1.9.0 │ └── h3 1.15.5 └─┬ unstorage 1.17.4 └── h3 1.15.5 devDependencies: @nuxt/test-utils 3.23.0 ├── h3 1.15.5 ├── h3-next npm:h3@2.0.1-rc.11 └─┬ vitest-environment-nuxt 1.0.1 └─┬ @nuxt/test-utils 3.23.0 ├── h3 1.15.5 └── h3-next npm:h3@2.0.1-rc.11 npmx-connector@0.0.1 /Users/devonwells/development/open-source/npmx.dev/cli dependencies: h3 2.0.1-rc.11Will continue to look into it when I'm back from lunch, but posting for anyone else coming across.