Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

node-sass does not properly exclude non-css files #1867

Closed
johnbendi opened this issue Jan 25, 2017 · 1 comment
Closed

node-sass does not properly exclude non-css files #1867

johnbendi opened this issue Jan 25, 2017 · 1 comment

Comments

@johnbendi
Copy link

Here is the stacktrace of my error:

fs.js:906
  return binding.stat(pathModule._makeLong(path));
                 ^

Error: ENOENT: no such file or directory, stat '~/projects/sample/src/app/qmod/containers/.#qmod.dashboard.component.css'
    at Object.fs.statSync (fs.js:906:18)
    at Graph.addFile (~/projects/sample/node_modules/sass-graph/sass-graph.js:57:18)
    at ~/projects/sample/node_modules/sass-graph/sass-graph.js:47:13
    at arrayEach (~/projects/sample/node_modules/lodash/lodash.js:537:11)
    at Function.forEach (~/projects/sample/node_modules/lodash/lodash.js:9359:14)
    at new Graph (~/projects/sample/node_modules/sass-graph/sass-graph.js:46:7)
    at Object.module.exports.parseDir (~/projects/sample/node_modules/sass-graph/sass-graph.js:148:17)
    at buildGraph (~/projects/sample/node_modules/node-sass/bin/node-sass:240:23)
    at watch (~/projects/sample/node_modules/node-sass/bin/node-sass:249:15)
    at run (~/projects/sample/node_modules/node-sass/bin/node-sass:332:5)

As you can see node-sass wrongly includes a temporary ide working file which it should have excluded. Node-sass should also have a way of specifying which files it should include by way of regular expression or some such.

@xzyfer
Copy link
Contributor

xzyfer commented Jan 25, 2017

As you can see node-sass wrongly includes a temporary ide working file which it should have excluded

I cannot see that from the limited information you've provided. What's the @import that's causing this error?

Node-sass should also have a way of specifying which files it should include by way of regular expression or some such.

No it should not. Node Sass includes .sass, .scss, and .css files. This is part of the language spec and not negotiable. To tell Node Sass where to look for files you set the includePaths.

xzyfer added a commit that referenced this issue Apr 16, 2018
This was a non-standared feature in LibSass we had to support. It
is being removed in LibSass 3.6.0.

This prevents people from output their source directory.

See sass/libsass#2611
See #2184
See #2006
See #1933
See #1925
See #1867
See #1845
nschonni pushed a commit to nschonni/node-sass that referenced this issue Jul 9, 2018
This was a non-standared feature in LibSass we had to support. It
is being removed in LibSass 3.6.0.

This prevents people from output their source directory.

See sass/libsass#2611
See sass#2184
See sass#2006
See sass#1933
See sass#1925
See sass#1867
See sass#1845
xzyfer added a commit that referenced this issue Jul 16, 2018
This was a non-standared feature in LibSass we had to support. It
is being removed in LibSass 3.6.0.

This prevents people from output their source directory.

See sass/libsass#2611
See #2184
See #2006
See #1933
See #1925
See #1867
See #1845
xzyfer added a commit that referenced this issue Jul 16, 2018
This was a non-standared feature in LibSass we had to support. It
is being removed in LibSass 3.6.0.

This prevents people from output their source directory.

See sass/libsass#2611
See #2184
See #2006
See #1933
See #1925
See #1867
See #1845
xzyfer added a commit that referenced this issue Nov 7, 2019
This was a non-standared feature in LibSass we had to support. It
is being removed in LibSass 3.6.0.

This prevents people from output their source directory.

See sass/libsass#2611
See #2184
See #2006
See #1933
See #1925
See #1867
See #1845
xzyfer added a commit that referenced this issue Nov 7, 2019
This was a non-standared feature in LibSass we had to support. It
is being removed in LibSass 3.6.0.

This prevents people from output their source directory.

See sass/libsass#2611
See #2184
See #2006
See #1933
See #1925
See #1867
See #1845
xzyfer added a commit that referenced this issue Nov 7, 2019
This was a non-standared feature in LibSass we had to support. It
is being removed in LibSass 3.6.0.

This prevents people from output their source directory.

See sass/libsass#2611
See #2184
See #2006
See #1933
See #1925
See #1867
See #1845
xzyfer added a commit that referenced this issue Nov 8, 2019
This was a non-standared feature in LibSass we had to support. It
is being removed in LibSass 3.6.0.

This prevents people from output their source directory.

See sass/libsass#2611
See #2184
See #2006
See #1933
See #1925
See #1867
See #1845
xzyfer added a commit that referenced this issue Mar 21, 2020
This was a non-standared feature in LibSass we had to support. It
is being removed in LibSass 3.6.0.

This prevents people from output their source directory.

See sass/libsass#2611
See #2184
See #2006
See #1933
See #1925
See #1867
See #1845
saper pushed a commit to saper/node-sass that referenced this issue May 17, 2020
This was a non-standared feature in LibSass we had to support. It
is being removed in LibSass 3.6.0.

This prevents people from output their source directory.

See sass/libsass#2611
See sass#2184
See sass#2006
See sass#1933
See sass#1925
See sass#1867
See sass#1845
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants