-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
"Package import specifier "#build/app.config.mjs" is not defined in package" - When using useRuntimeConfig() in nuxt 3 #430
Comments
|
Please give [v0.15.0] a try and report back if your issue is solved or not 🙏 |
I'm getting a different error with this version:
Minimal reproduction Stackblitz here: https://stackblitz.com/edit/github-brmchy?file=components/Test.story.vue I have tried installing EDIT: |
Hmm when I try it in a bigger project, I get this error:
I'm working on a reproduction |
We also experienced this issue with histoire (v 0.12.4) and useCookie. Upgrading to v 0.15 fixed the issue, but caused some other problems, so we had to find another solution. Switched to an external library for using cookies as a solution. |
Describe the bug
When using
useRuntimeConfig()
in a component the following error occurs:Seems related to nuxt/nuxt#14801, but I use auto imports and the newest version of nuxt and histoire
Reproduction
I have made a reproduction here: https://stackblitz.com/edit/github-k8sztc?file=components/HelloRuntimeConfig.vue
It consists of a
Hello.story.vue
and aHelloRuntimeConfig.story.vue
story. The only difference is thatHelloRuntimeConfig.story.vue
refers to a component withconst config = useRuntimeConfig()
. If this line is removed, the error disappears.System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: