Skip to content
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

Failed to fetch dynamically imported module: sb-vite/deps/@storybook_vue3_dist_entry-preview__mjs.js #731

Open
CraigDaveyHornby opened this issue Jul 25, 2024 · 9 comments
Labels
status: help wanted Good idea, but the core developers will not work on it at the moment status: needs reproduction Needs a minimal reproduction type: bug Something isn't working

Comments

@CraigDaveyHornby
Copy link

I am currently getting the following error when starting up storybook and viewing the local url. I can also see that the same sort of error is present on your examples.

Versions

Package Version
@nuxtjs/storybook ^8.1.4
@storybook-vue/nuxt ^8.1.4
@storybook/addon-a11y ^8.2.4
@storybook/addon-actions ^8.2.4
@storybook/addon-essentials ^8.2.4
@storybook/addon-interactions ^8.2.4
@storybook/addon-links ^8.2.4
@storybook/addon-viewport ^8.2.4
@storybook/blocks ^8.2.4
@storybook/builder-vite ^8.2.4
@storybook/test ^8.2.4

Error

Failed to fetch dynamically imported module: http://localhost:6006/node_modules/.cache/storybook/1c3385a5d25e538d10b518b310c74d3ca2690b6aaffeadccd74da79736171f86/sb-vite/deps/@storybook_vue3_dist_entry-preview__mjs.js?v=9916e1e6
@N3P0m
Copy link

N3P0m commented Jul 26, 2024

Same problem, couldn't solve it?

@evgentus-cy
Copy link

Same problem

"nuxt": "3.12.4",
"vue": "3.4.34",
"@nuxtjs/storybook": "8.1.5",
"@storybook-vue/nuxt": "8.1.5",
"@storybook/addon-essentials": "8.2.6",
"@storybook/addon-interactions": "8.2.6",
"@storybook/addon-links": "8.2.6",
"@storybook/addon-viewport": "8.2.6",
"@storybook/blocks": "8.2.6",
"@storybook/builder-vite": "8.2.6",
"@storybook/test": "8.2.6",
"@storybook/types": "8.2.6",
"@storybook/vue3": "8.2.6",
"storybook": "8.2.6",

@evgentus-cy
Copy link

evgentus-cy commented Jul 30, 2024

Errors in terminal

Error: Build failed with 3 errors:
node_modules/@storybook-vue/nuxt/dist/preview.mjs:5:30: ERROR: Could not resolve "virtual:nuxt-runtime-config"
node_modules/@storybook-vue/nuxt/dist/preview.mjs:6:7: ERROR: Could not resolve "#build/css"
node_modules/@storybook-vue/nuxt/dist/preview.mjs:7:20: ERROR: Could not resolve "#build/plugins"

Versions of @nuxt/vite-builder in yarn.lock are @nuxt/[email protected]", "@nuxt/vite-builder@^3.12.2

@evgentus-cy
Copy link

I think this is a copy of #718
Fix in progress #726

@tobiasdiez
Copy link
Collaborator

I also got it sometimes, but it disappeared when refreshing the browser. Maybe an issue with vite's dependency optimization.

@tobiasdiez tobiasdiez added type: bug Something isn't working status: help wanted Good idea, but the core developers will not work on it at the moment status: needs reproduction Needs a minimal reproduction labels Aug 3, 2024
@Tyki
Copy link

Tyki commented Aug 6, 2024

Hi, do you have an ETA for the release of this fix ? Thanks for the fix

@ouladck
Copy link

ouladck commented Aug 6, 2024

I have the same problem

"nuxt": "3.12.4",
"vue": "3.4.35",
"@nuxtjs/storybook": "8.1.5",
"@storybook-vue/nuxt": "8.1.5",
"@storybook/addon-essentials": "8.2.7",
"@storybook/addon-interactions": "8.2.7",
"@storybook/addon-links": "8.2.7",
"@storybook/addon-viewport": "8.2.7",
"@storybook/blocks": "8.2.7",
"@storybook/builder-vite": "8.2.7",
"@storybook/test": "8.2.7",
"@storybook/types": "8.2.7",
"@storybook/vue3": "8.2.7",
"storybook": "8.2.7",

I got this error too:

ERROR  (node:23907) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
(Use node --trace-warnings ... to show where the warning was created)

 ERROR  (node:23907) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time 

@tobiasdiez
Copy link
Collaborator

This might be related to the upstream bug: storybookjs/storybook#28620

@tobiasdiez
Copy link
Collaborator

Could someone please provide a minimal reproduction? For me this is no longer occurring in the latest versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: help wanted Good idea, but the core developers will not work on it at the moment status: needs reproduction Needs a minimal reproduction type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants