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

Usage with StorybookJS? #95

Open
sethmbrown opened this issue Aug 22, 2023 · 0 comments
Open

Usage with StorybookJS? #95

sethmbrown opened this issue Aug 22, 2023 · 0 comments

Comments

@sethmbrown
Copy link

sethmbrown commented Aug 22, 2023

Running into some issues building StorybookJS while using next-images to load SVGs from a sprite sheet.

Dependencies
"next": "13.3.0"
"next-images": "1.8.5"
"storybook": "7.3.2",

Without any modification to StorybookJS webpack, getting the following error -

ModuleBuildError: Module build failed (from ./node_modules/@storybook/nextjs/dist/next-image-loader-stub.js):
TypeError: Invalid SVG
    at Object.calculate (/Users/sethbrown/app/frontend/node_modules/image-size/dist/types/svg.js:89:15)

The app compiles just fine when running locally - only Storybook is throwing this issue.

Any insights on how to address this issue? Thanks.

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

No branches or pull requests

1 participant