question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sass still unavaliable in alpha.6

See original GitHub issue

Sass inside packages are still broken.

There is css and scss files now with same name, so @import inside scss files of material2 don’t know which file should be imported (css or scss), and returns an error.

I think this can be fixed if you put extensions in scss files of material 2, or remove all css files from the package styles dir (move somewhere).

One more time: I am trying to import variables.scss like:

@import "node_modules/@angular2-material/core/style/variables.scss";

and get error:

Error: It's not clear which file to import for '@import "theme-functions"'.
Candidates:
  _theme-functions.scss
  _theme-functions.css
Please delete or rename all but one of these files.

This error comes from your variables.scss I also pointed this error earlier: https://github.com/angular/material2/issues/533#issuecomment-223513305

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
alsamicommented, Jul 1, 2016

+1 on that. The @import method looks for .scss and .css and since there is both it’s doesn’t know which file to import. Could also be fixed by importing the ‘theme-functions’ with the extension or move the output of the sass files into a different folder.

image

1reaction
peterwiebecommented, Jul 2, 2016

I ended up deleting all of the CSS files, problem is when you update to the latest version it brings them back so you have to go through and delete them again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sass-bootstrap - npm
Bootstrap. Sleek, intuitive, and powerful front-end framework for faster and easier web development. Visit Bootstrap » ...
Read more >
Built-In Modules - Sass
The Sass team discourages their use and will eventually deprecate them, but for now they remain available for compatibility with older Sass versions...
Read more >
How to create _custom.scss to override variable in Bootstrap 4 ...
I am trying to customize a Bootstrap 4 alpha 6 theme. I want to copy settings from _variable.scss file to _custom.scss to override....
Read more >
Tip: Using Bootstrap 4 alpha 6 with Laravel 5.4 - Laracasts
just keep in mind that bootstrap is still in alpha and will have plenty of changes. i just wanted to share this for...
Read more >
"Listen has fallen back to polling" and won't watch #362 - GitHub
After I installed the Listen gem, the warning went away, however Sass is still only parsing once and fails to detect changes after....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found