coreui-icons icon indicating copy to clipboard operation
coreui-icons copied to clipboard

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

Open jaydiablo opened this issue 4 years ago • 4 comments

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'

jaydiablo avatar Jun 10 '20 17:06 jaydiablo

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

mrholek avatar Nov 18 '20 22:11 mrholek

@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;

berkut1 avatar Dec 15 '20 02:12 berkut1

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

EstelleH avatar May 11 '21 20:05 EstelleH

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

doelmi avatar Dec 13 '23 03:12 doelmi