Skip to content
This repository has been archived by the owner on Jan 17, 2021. It is now read-only.

Error with Angularjs 4.0 #42

Open
cliedelt opened this issue Mar 24, 2017 · 8 comments
Open

Error with Angularjs 4.0 #42

cliedelt opened this issue Mar 24, 2017 · 8 comments

Comments

@cliedelt
Copy link

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
Copy link
Contributor

@astalegale
Copy link

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

@DanielRuf
Copy link
Contributor

@astalegale can you provide some more information?

@astalegale
Copy link

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
Copy link
Contributor

cc @tomscholz is webpack used?

@astalegale
Copy link

Hi @DanielRuf ,
sorry i forgot to mention it.

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

Thanks

Alex

@kirikintha
Copy link

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
Copy link
Contributor

@kirikintha this is specific to Sass and node_modules.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants