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

Loading google fonts with @import tag in scss doesn't work. Throws error. #2466

Closed
purushottamjha opened this issue Oct 2, 2016 · 3 comments

Comments

@purushottamjha
Copy link

When I do this:
// Fonts
@import 'https://fonts.googleapis.com/css?family=Raleway:100,200,300,400,500,600,700,800,900';

I get this error:

ERROR in .//css-loader!.//postcss-loader!./~/sass-loader!./src/styles.scss
Module build failed: CssSyntaxError: css-loader-parser: /Users/purushottamj/workspaces/mithilatech/mithilatech-frontend/styles.scss:1:0: Unexpected formathttps://fonts.googleapis.com/css?family=Raleway:100,200,300,400,500,600,700,800,900

1 | @import https://fonts.googleapis.com/css?family=Raleway:100,200,300,400,500,600,700,800,900;

OS?

Mac OSX (Sierra)

Versions.

angular-cli: 1.0.0-beta.16
node: 4.2.4
os: darwin x6

@grizzm0
Copy link
Contributor

grizzm0 commented Oct 3, 2016

Can you try wrapping the path with url() ? I believe this is a libsass issue and not related to angular-cli.

@purushottamjha
Copy link
Author

Wrapping it in url() works perfect. Thank you :)

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
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

2 participants