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

Problem with nucleo-outline #31

Closed
ghost opened this issue Apr 13, 2020 · 1 comment
Closed

Problem with nucleo-outline #31

ghost opened this issue Apr 13, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Apr 13, 2020

I had an error 'Failed to compile' related to 'nucleo-outline.eot' and other files:

./src/assets/scss/now-ui-dashboard.scss?v=1.3.0 (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-5-4!./src/assets/scss/now-ui-dashboard.scss?v=1.3.0)
Module not found: Can't resolve './fonts/nucleo-outline.eot' in 'D:\git\Farmai-group\src\farmai-frontend\src\assets\scss'

Temporary handled by deactivation of nucleo-outline in 'assets/scss/now-ui-dashboard.scss':

// Core CSS
@import "now-ui-dashboard/buttons";
@import "now-ui-dashboard/social-buttons";
@import "now-ui-dashboard/inputs";
@import "now-ui-dashboard/typography";
@import "now-ui-dashboard/misc";
@import "now-ui-dashboard/navbar";
@import "now-ui-dashboard/dropdown";
@import "now-ui-dashboard/alerts";
@import "now-ui-dashboard/images";
//@import "now-ui-dashboard/nucleo-outline";
@import "now-ui-dashboard/tables";
@import "now-ui-dashboard/footers";
@import "now-ui-dashboard/fixed-plugin";

Now I don't have icons, but at least I can progress with development.

@einazare
Copy link
Contributor

einazare commented Apr 14, 2020

Hello again, @ewirth ,

I think I wasn't very explicit myself.
Please revert your changes (i.e. activate the nucleo-outline back).
And then, go inside src/assets/scss/now-ui-dashboard/_nucleo-outline.scss and replace:

@font-face {
  font-family: "Nucleo Outline";
  src: url("../fonts/nucleo-outline.eot");
  src: url("../fonts/nucleo-outline.eot") format("embedded-opentype"),
    url("../fonts/nucleo-outline.woff2") format("woff2"),
    url("../fonts/nucleo-outline.woff") format("woff"),
    url("../fonts/nucleo-outline.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

With

@font-face {
  font-family: "Nucleo Outline";
  src: url("~assets/nucleo-outline.eot");
  src: url("~assets/nucleo-outline.eot") format("embedded-opentype"),
    url("~assets/nucleo-outline.woff2") format("woff2"),
    url("~assets/nucleo-outline.woff") format("woff"),
    url("~assets/nucleo-outline.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

This will do the trick.

Best,
Manu

@einazare einazare added the bug Something isn't working label Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant