hirotaka / storybook-addon-nuxt

This add-on makes it easier to set up Storybook in your Nuxt3 project.
78 stars 16 forks source link

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

Open fengliang-2d opened 11 months ago

fengliang-2d commented 11 months ago

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:

Thank you. Feng