Environment
- Operating System:
Darwin
- Node Version:
v16.15.0
- Nuxt Version:
3.0.0-rc.4
- Package Manager:
pnpm@7.1.3
- Builder:
vite
- User Config:
buildDir, srcDir, css, typescript, build, modules, runtimeConfig
- Runtime Modules:
@pinia/nuxt@0.1.9
- Build Modules:
-
Reproduction

Describe the bug
Running nuxi generate produces
ERROR [nuxt] [request error] Invalid value used as weak map key
issue is probably related to https://github.com/nuxt/framework/discussions/4588
I also believe that this might cause the error

During nuxt dev, no errors are present.
Additional context
No response
Logs
No response