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

Default icon path to icon files in SCSS is wrong (Free icons) #20

Open
jaydiablo opened this issue Jun 10, 2020 · 4 comments
Open

Default icon path to icon files in SCSS is wrong (Free icons) #20

jaydiablo opened this issue Jun 10, 2020 · 4 comments

Comments

@jaydiablo
Copy link

Ran into this yesterday when trying to build these icons. The SASS transpilation step fails because the path defined for the Icon files here: https://github.com/coreui/coreui-icons/blob/master/scss/free/_variables.scss#L2 is incorrect. The fonts folder is actually one more level back, so this:

$coreui-icons-font-path: "../fonts" !default;

should be

$coreui-icons-font-path: "../../fonts" !default;

Here's the error I was receiving:

Syntax Error: ModuleNotFoundError: Module not found: Error: Can't resolve '../fonts/CoreUI-Icons-Free.eot' in '/project/node_modules/@coreui/icons/scss/free'

@mrholek
Copy link
Member

mrholek commented Nov 18, 2020

@jaydiablo I fixed it in the latest release, can you check if this release is ok?

@berkut1
Copy link

berkut1 commented Dec 15, 2020

@mrholek I have got the similar error in 2.0.0-beta.5 and 2.0.0-rc.0

Syntax Error: ModuleNotFoundError: Module not found: Error: Can't resolve '../../node_modules/@coreui/icons/scss/fonts/CoreUI-Icons-Free.eot' in '/app/assets/css'

This helps me:
$coreui-icons-font-path: "../../fonts" !default;

@EstelleH
Copy link

@mrholek I have the same issue with @coreui/icons@^2.0.1 version.

@doelmi
Copy link

doelmi commented Dec 13, 2023

In Laravel vite, I add $coreui-icons-font-path: "@coreui/icons/fonts" !default; in app.scss file. It works.

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

5 participants