Cannot resolve to SCSS partial files
See original GitHub issueHey,
I’ve found that when trying to import scss partial file, plugin doesn’t work correctly because it doesn’t resolve to scss partial file with leading underscore e.g. _partial.scss
.
In dev tools
{
"errno":-2,
"code":"ENOENT",
"syscall":"stat",
"path":"/Users/Batman/Desktop/Wayne/src/index.scss"
// index.scss doesn't exist but this exists _index.scss
}
When trying to resolve path for @import '...'
, I think that plugin should also check if partial file exists, like
/Users/Batman/Desktop/Wayne/src/_index.scss
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Feedback: Cannot resolve to SCSS partial files · Issue #49
My issue was resolved by adding all my imports into one file, then importing that file into my html page. _styles.scss: @include _variables.scss...
Read more >Sass import partial content in another sass file - Stack Overflow
One way to do it is to put all your mixins in a general mixins file, then, import that file into another general...
Read more >Importing Sass Partials - LearnHowToProgram.com
This lesson will explore how we can organize and modularize our styles by creating multiple Sass files, and importing into one another as...
Read more >Sass partials starting with double underscore cannot be ...
Sass partials starting with double underscore cannot be resolved. What steps will reproduce the problem? 1. Create a Sass file named main.scss ....
Read more >Sass: @import
Imports will always be resolved relative to the current file first, though. Load paths will only be used if no relative file exists...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Will be cool, if you give me more examples of your problem. Now my fast & lightweight parser has no support for
@include font-face("Akkurat-Bold", "../fonts/akkurat/lineto-akkurat-bold");
. I try to find time for this issue and #42.Closed in favor of #49