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

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

@johnbendi

Description

@johnbendi

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions