-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Setting shamefully-hoist=false
will make nitro generated types fail
#23984
Comments
shamefully-hoist=false
will make useRuntimeConfig()
fail to get the types
shamefully-hoist=false
will make useRuntimeConfig()
fail to get the typesshamefully-hoist=false
will make nitro generated types fail
A workaround is to install |
We could add |
my current workaround is:
|
This should be resolved in v3.11+. |
This problem seems to still exist in Nuxt v3.11.2. I am using pnpm 9.1.2. |
Would you provide a reproduction? 🙏 |
Took a crack at a reproduction myself because unfortunately I am also still observing this in my pnpm backed projects. https://stackblitz.com/edit/pnpm-import-meta-env-typescript-reproduction?file=app.vue Loading up that stackblitz and running
This error also appears inside your editor, though it looks like stackblitz doesn't support that. Also if it helps my personal site is using pnpm + nuxt nightly with the new |
Environment
Reproduction
repo: https://github.com/awdr74100/nuxt-bug-reproduction
nuxt.config.ts
.npmrc
Describe the bug
shamefully-hoist=true
shamefully-hoist=false
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: