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.

Cannot resolve to SCSS partial files

See original GitHub issue

Hey, 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:closed
  • Created 7 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mrmlnccommented, May 31, 2017

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.

0reactions
mrmlnccommented, Jun 14, 2017

Closed in favor of #49

Read more comments on GitHub >

github_iconTop 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 >

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