Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Error: failed to load nuxt-img and useAppConfig() #22

Open
fengliang-2d opened this issue Jul 13, 2023 · 0 comments
Open

Error: failed to load nuxt-img and useAppConfig() #22

fengliang-2d opened this issue Jul 13, 2023 · 0 comments

Comments

@fengliang-2d
Copy link

Hi @hirotaka
Thank you for creating this addon for nuxt users.

I came across some issue when trying to render the page in storybook with some 3rd-part Nuxt module like .
Also, it failed to load useAppConfig(), to get the links I configured in the app.config.ts file in the Nuxt 3 project.
Sorry, I am very new to Storybook, might miss some configuration, if that is the case, please let me know.

Here are some modules and their versions I am using in my project, which are related to the issue:

"nuxt": "^3.5.2",
"@nuxt/image": "^1.0.0-rc.1",
"storybook": "^7.0.25",
"storybook-addon-nuxt": "^1.3.3",
"@storybook/addon-actions": "^7.0.25",
"@storybook/addon-essentials": "^7.0.25",
"@storybook/addon-interactions": "^7.0.25",
"@storybook/addon-links": "^7.0.25",
"@storybook/addon-styling": "^1.3.2",
"@storybook/blocks": "^7.0.25",
"@storybook/testing-library": "^0.0.14-next.2",
"@storybook/vue3": "^7.0.25",
"@storybook/vue3-vite": "^7.0.25",

Here is the error I got:
image

So my question are:

  • Is there a way to use 3rd-party lib like
  • How do I need to configure to enable useAppConfig() loaded in storybook?

Thank you.
Feng

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant