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

Sass-graph CSS parse bug (against css files) causes process termination in --watch mode only #2185

Closed
RoyTinker opened this issue Dec 12, 2017 · 2 comments

Comments

@RoyTinker
Copy link

Reduced test case (git repo):
https://github.com/RoyTinker/node-sass-watch-import-css-bug
(see README.md there for repro instructions)

There seem to be 2 problems here:

  • node-sass's watcher uses sass-graph with 'css' configured as an extension to parse (note: css files are not parsed when compiling via node-sass in non-watch mode)
  • sass-graph seems to have a bug when parsing certain CSS imports.

I suspect the solution would involve the following:

  • fix config options when calling sass-graph from the watcher to not parse CSS files
  • file a bug on sass-graph for the parsing bug

Info:

  • NPM version: 5.6.0
  • Node version: v9.2.1
  • Node Process:
{ http_parser: '2.7.0',
  node: '9.2.1',
  v8: '6.2.414.44-node.11',
  uv: '1.16.1',
  zlib: '1.2.11',
  ares: '1.13.0',
  modules: '59',
  nghttp2: '1.25.0',
  openssl: '1.0.2n',
  icu: '60.1',
  unicode: '10.0',
  cldr: '32.0',
  tz: '2017c' }
  • Node platform: darwin
  • Node architecture: x64
  • node-sass version:
node-sass	4.7.2	(Wrapper)	[JavaScript]
libsass  	3.5.0.beta.2	(Sass Compiler)	[C/C++]
  • npm node-sass versions:
[email protected] /Users/roy4662/projects/node-sass-watch-import-css-bug
└── [email protected]
@xzyfer
Copy link
Contributor

xzyfer commented Dec 12, 2017 via email

@xzyfer xzyfer closed this as completed Dec 12, 2017
@RoyTinker
Copy link
Author

@xzyfer:

  • The CSS file is not imported from anything.
  • It is not parsed when running node-sass without --watch

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants