choffmeister / roboto-fontface-bower

Bower package for the Roboto font-face
Apache License 2.0
153 stars 56 forks source link

Error with Angularjs 4.0 #42

Open cliedelt opened 7 years ago

cliedelt commented 7 years ago

Hey, so I just upgraded to the new version and i got this error

ERROR in multi ./src/styles.css ./src/~/roboto-fontface/css/roboto/roboto-fontface.c ss Module not found: Error: Can't resolve 'D:\Desktop\etc\supportertool\supportertool\s rc\node_modules\roboto-fontface\css\roboto\roboto-fontface.css' in 'D:\Desktop\etc\s upportertool\supportertool' @ multi ./src/styles.css ./src/~/roboto-fontface/css/roboto/roboto-fontface.css

DanielRuf commented 7 years ago

Please check the paths and directories.

https://github.com/choffmeister/roboto-fontface-bower/blob/master/css/roboto/roboto-fontface.css

astalegale commented 6 years ago

same issue here, importing in a scss file it doesn't work

DanielRuf commented 6 years ago

@astalegale can you provide some more information?

astalegale commented 6 years ago

Hi @DanielRuf, first of all thanks!

The problem occurs if i try to import the library using the @import keywork from a scss file, if i import the main scss file from .angular-cli.json styles section everything works.

src |style |__style.scss <- here i use @import "node_modules/roboto-fontface/css/roboto/sass/roboto-fontface";

I've tried all relavitve path combinations with the same result, instead as i said befefore using the styles section of anguar-cli.json everything works.

Thanks Alex

DanielRuf commented 6 years ago

cc @tomscholz is webpack used?

astalegale commented 6 years ago

Hi @DanielRuf , sorry i forgot to mention it.

Yes, i use webpack that in used inside angular-cli as default.

Thanks

Alex

kirikintha commented 5 years ago

Hi there - I am using the following with Angular CLI and a _variables.scss file imported before my styles.scss. This has solved the build issue for me!

$roboto-font-path: "~roboto-fontface/fonts" !default;

DanielRuf commented 5 years ago

@kirikintha this is specific to Sass and node_modules.