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.

It's not clear which file to import for '@import "overlay/overlay"

See original GitHub issue

When I create theme file, the sass throw a error like below:

node_modules/@angular/material/core/_core.scss Error: It's not clear which file to import for '@import "overlay/overlay"

I try to modify the import file in the _core.scss, and it’s works.

@import ‘overlay/overlay.scss’;

I think maybe could change the file name of ‘overlay.scss’ to ‘_overlay.scss’

The material and sass version:

@angular/material”: “^2.0.0-alpha.9”, “gulp-sass”: “^2.3.1”,

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
aroopcommented, Sep 28, 2016

core/overlay folder has two files overlay.scss and overlay.css(Empty file). Deleting overlay.css fixed this issue for me.

2reactions
wallace41290commented, Sep 28, 2016

@spock123 I got the same error, if I understand correctly, @oustn is not trying to import overlay directly, but by importing ~@angular/material/core/theming/all-theme’, that sass file is importing core.scss which is importing overlay and that is where the error is from. I just went into the core.scss and changed the import to overlay.scss to force the extension for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

It's not clear which file to import for '@import - Stack Overflow
This was pretty easy. Error message simply indicated it could not find the scss file path. @import '../../variables.scss';.
Read more >
Error: It's not clear which file to import for '@import "assets ...
I'm new to sass/npm/gulp. As a quick test, I edited src/sass/bootstrap4/bootstrap.scss but it did not trigger gulp watch and no new css files...
Read more >
Overlay Errors while Importing Overlay objects - Discussion
Since I am facing this issue, I tried deleting the overlay form from the developer studio and tried importing the overlay and overlaid....
Read more >
OBS Studio - Super Charge! Overlays Quick Import
Navigate to your extracted “Overlays” folder and the “~OBS Studio – Quick Install” folder. Select the Quick Import “. lua” file and click...
Read more >
Cross-import overlays - Pitches - Swift Forums
Cross-import overlays allow Swift to automatically import additional “overlay” modules based on the combination of imports in a particular ...
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