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

[Bug] using builder-vite with vite-svg-loader #565

Open
1 task
donghoon-song opened this issue Mar 6, 2023 · 0 comments
Open
1 task

[Bug] using builder-vite with vite-svg-loader #565

donghoon-song opened this issue Mar 6, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@donghoon-song
Copy link

donghoon-song commented Mar 6, 2023

What version of vite are you using?

3.2.5

System info and storybook versions

Environment Info:

System:
OS: macOS 11.6.7
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Binaries:
Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 8.1.0 - ~/.nvm/versions/node/v16.13.0/bin/npm
Browsers:
Chrome: 110.0.5481.177
Firefox: 108.0.1
Safari: 14.1.2
npmPackages:
@storybook/addon-actions: ^6.5.16 => 6.5.16
@storybook/addon-docs: ^6.0.22 => 6.5.16
@storybook/addon-essentials: ^6.5.16 => 6.5.16
@storybook/addon-interactions: ^6.5.16 => 6.5.16
@storybook/addon-links: ^6.5.16 => 6.5.16
@storybook/addon-viewport: ^6.0.26 => 6.5.16
@storybook/builder-vite: ^0.4.0 => 0.4.0
@storybook/mdx2-csf: ^0.0.4 => 0.0.4
@storybook/storybook-deployer: ^2.8.7 => 2.8.16
@storybook/testing-library: ^0.0.13 => 0.0.13
@storybook/vue: ^6.5.16 => 6.5.16

Describe the Bug

Uncaught SyntaxError: The requested module '/node_modules/.vite-storybook/deps/vue.js?v=e1c77ae0' does not provide an export named 'createElementBlock' (at icon-writing-2xlarge-line.svg?import&component:1:78)

The error above occurs. When I enter http://localhost:6006/.
The svg component element doesnt render.

Link to Minimal Reproducible Example

feature/migrate-storybook-webpack-to-vite

Participation

  • I am willing to submit a pull request for this issue.
@donghoon-song donghoon-song added the bug Something isn't working label Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant