Closed balazsorban44 closed 6 years ago
Looks to be related to: https://github.com/michaelwayman/node-sass-chokidar/issues/48
There seems to be a problem with using a single file as input right now, so one possibility would be to use the whole directory instead, so:
npm run build-css && node-sass-chokidar --include-path ./src/sass src/sass/main.sass src/main.css -w -r
becomes:
npm run build-css && node-sass-chokidar --include-path ./src/sass src/sass/ src/ -w -r
try the latest version 1.2.1 and let me know. but as an asside, you don't believe you specify an output file so much as an output directory.. issue left over from node-sass I believe
I just tried node-sass
, and my script worked without any modifications. I don't really understand what broke it, 'cause until like 3-4 days ago, it worked just fine on all my projects, with node-sass-chokidar
:confused: too. Now, whichever version I use after a clean Node install it does not work, no matter what project I am trying on. But since I really don't have big projects, I think I will stick to node-sass
for the time being, for as I understood, this package's only advantage would be speed compared to node-sass
. Sorry if I am wrong. Anyway, the package problem is not resolved for me, but since I found a way around, I close this issue. Thanks for the help anyway!
Sorry, I rushed some bug fixes and features without giving them my full attention, but anyway your bug should be fixed if you ever want to switch back to node-sass-chokidar. Thanks for reporting the issue.
I am getting the attached error when I run
yarn start
my
package.json
has:Node:
9.4.0
Yarn:1.5.1
node-sass-chokidar:1.2.0
on Ubuntu 17.10The error appeared only yesterday, before that, it worked just fine. I recently updated from
1.1.2
, so I reinstalled mynode_modules
with1.1.2
, but it throws the same error.If I remove the
-w
and-r
flags, it does not crash, but than watching is not working.PS.: I checked, it stopped working on my other similar project too, with the same error.