Semantic-Org / Semantic-UI

Semantic is a UI component framework based around useful principles from natural language.
http://www.semantic-ui.com
MIT License
51.1k stars 4.94k forks source link

can not resolve @fontPath #7054

Open kvcdev opened 3 years ago

kvcdev commented 3 years ago

Hello, everyone. I've try to customize semantic-ui in react with craco by follow this instuction.

and I try to yarn start but I face this error

Error: Can't resolve './themes/themes/default/assets/fonts/icons.eot'

This is the bottom of my theme.config

/ Folders /

/ Path to theme packages / @themesFolder : 'themes';

/ Path to site override folder / @siteFolder : '../../src/semantic-ui/site';

@import (multiple) "~semantic-ui-less/theme.less"; @fontPath : '../../../themes/@{theme}/assets/fonts';

/ Import Theme /

/@import (multiple) "theme.less";/ @import (multiple) "~semantic-ui-less/theme.less";

/ End Config /

I try very very hard to solve this error but I can't

Please, give me some advices.

Thanks.

corynezinstitchfix commented 1 year ago

I fixed this by adding @fontPath : '~semantic-ui-less/themes/default/assets/fonts'; to the bottom of the theme.config file.