-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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]: v7.0.4 'No loader is configured for ".eot" #22104
Comments
Given Storybook 7 dropped support for IE11, and eot files were only used by IE, I would find it quite expected that the default bundler configuration removed the loader for eot files. and your reproducer is not complete AFAICT (as there is no import of this CSS in the snippet you provided) |
In the example above it is complaining about .ttf and .woff fonts as well. I am also experiencing a similar issue with .otf fonts. |
After update to 7.x version I have the same error:
|
Having the same error in a nuxt project, using "storybook-addon-vuetify3": "^2.0.5" ✘ [ERROR] No loader is configured for ".ttf" files: node_modules/storybook-addon-vuetify3/node_modules/@mdi/font/fonts/materialdesignicons-webfont.ttf?v=6.9.96
node_modules/storybook-addon-vuetify3/node_modules/@mdi/font/css/materialdesignicons.min.css:1:356:
1 │ ...off?v=6.9.96") format("woff"),url("../fonts/materialdesignicons-webfont.ttf?v=6.9.96") format("truetype");font-weight:...
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] No loader is configured for ".woff" files: node_modules/storybook-addon-vuetify3/node_modules/@mdi/font/fonts/materialdesignicons-webfont.woff?v=6.9.96
node_modules/storybook-addon-vuetify3/node_modules/@mdi/font/css/materialdesignicons.min.css:1:283:
1 │ ...2?v=6.9.96") format("woff2"),url("../fonts/materialdesignicons-webfont.woff?v=6.9.96") format("woff"),url("../fonts/ma...
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] No loader is configured for ".eot" files: node_modules/storybook-addon-vuetify3/node_modules/@mdi/font/fonts/materialdesignicons-webfont.eot?#iefix&v=6.9.96
node_modules/storybook-addon-vuetify3/node_modules/@mdi/font/css/materialdesignicons.min.css:1:116:
1 │ ...ebfont.eot?v=6.9.96");src:url("../fonts/materialdesignicons-webfont.eot?#iefix&v=6.9.96") format("embedded-opentype"),...
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] No loader is configured for ".eot" files: node_modules/storybook-addon-vuetify3/node_modules/@mdi/font/fonts/materialdesignicons-webfont.eot?v=6.9.96
node_modules/storybook-addon-vuetify3/node_modules/@mdi/font/css/materialdesignicons.min.css:1:55:
1 │ ...y:"Material Design Icons";src:url("../fonts/materialdesignicons-webfont.eot?v=6.9.96");src:url("../fonts/materialdesig...
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Also experiencing this 🤔 |
Same here. Storybook 7.0.7, Vite and @fontsource. |
Does anybody have a reproduction repo you can share? If not, can you create one? Go to https://storybook.new or see repro docs. Thank you! 🙏 |
Experiencing this as well 😬 @shilman here's a repro in Stackblitz: https://stackblitz.com/edit/github-yct3ar?file=.storybook/manager.ts. The error occurs in the info => Starting manager..
✘ [ERROR] No loader is configured for ".ttf" files: src/assets/OldLondon.ttf
src/assets/fonts.css:5:11:
5 │ src: url('./OldLondon.ttf') format('ttf');
╵ ~~~~~~~~~~~~~~~~~ |
I see, it's a manager-side issue. Makes sense. Thanks so much for the repro! I'll discuss with @ndelangen |
Please convert the font-file to woff2, that's the only format we support in the manager. This website will possibly do the job for you: |
the bug occurred with fonts of frontend libraries, like vuetify, so converting the font files should not be a solution. It wouldn't be suitable for unassisted installation like in an automated test environment. |
agree with @arnaldoperez. Converting is not an option for us |
Here's the config in storybook's codebase: storybook/code/lib/builder-manager/src/index.ts Lines 53 to 63 in 6bb9363
If all we need to add is support for Why does vuetify need
Can you explain this more, I don't understand this. |
In our project we need support to load |
@ndelangen any new about that? i think storybook-vuetify-addon required it |
We have the same issue with Vite and @fontsource. I added |
I opened a PR fixing this |
Son of a gun!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.1.0-alpha.20 containing PR #22576 that references this issue. Upgrade today to the
|
ZOMG!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.13 containing PR #22576 that references this issue. Upgrade today to the
|
Hey, @shilman I'm trying to upgrade React95 to use SB7 but I was facing this issue and am glad with the fix. In my case, it wasn't enough and I'll describe more to help you and me with some context. React95 uses Storybook 6 but I'm willing to move to v7 + replacing webpack with Vite 🔥. To do that, I look at the migration guide's docs. The first thing I did, was: cd packages/core && npx storybook@latest upgrade The second: npx storybook@latest migrate csf-2-to-3 --glob="stories/*.stories.tsx" The checker npx @hipster/mdx2-issue-checker And some TS adjustments 💅 When I tried to run the new script, yarn storybook dev I saw an error as described in this issue. So I spawned npx sb@next upgrade --tag future and all my issues with font files were gone but I'm still facing the same error with the I'm working on a branch so it is easy to keep track of everything. |
@ggdaltoso thanks for the follow-up. when did you upgrade to v7? i've patched the changes from this PR back to 7.0.13, so you shouldn't need to upgrade to the As for |
MP3 in the manager? sure, why not? |
Jeepers creepers!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.1.0-alpha.21 containing PR #22699 that references this issue. Upgrade today to the
|
¡Ay Caramba!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.15 containing PR #22699 that references this issue. Upgrade today to the
|
Describe the bug
To Reproduce
main.ts
I am importing a custom style sheet that loads
ttf
,eot
woff
filesRun
npx storybook build
System
Additional context
No response
The text was updated successfully, but these errors were encountered: