tabler / tabler-icons

A set of over 5700 free MIT-licensed high-quality SVG icons for you to use in your web projects.
https://tabler.io/icons
MIT License
18.31k stars 918 forks source link

Scss import is not working as it is in the doc #827

Open eerison opened 1 year ago

eerison commented 1 year ago

Hello

Import scss with node_modules worked, But just locally when I I run npm ru preview or npm run dev.

But when I build the application, I get this error:

Unable to resolve `@import "node_modules/@tabler/icons-webfont/tabler-icons.css"` from /home/runner/work/myprofile/myprofile/src/style/resume-default

Pipeline: https://github.com/shield-wall/myprofile/actions/runs/6131964642/job/16642412989

after I remove node_modules prefix, it worked

@import "@tabler/icons-webfont/tabler-icons.scss";

the other issue was, to appear icons I also need to import

@import "@tabler/icons-webfont/tabler-icons.css";

But the doc does not says it, I do not know if I missed something else, But I just could make this work importing those 2 files

you can have a better overview looking this file: https://github.com/shield-wall/myprofile/blob/master/src/style/icons.scss