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.

Deleting a .scss file gives watcher.deleted is not a function #2248

@webfaqtory

Description

@webfaqtory

Everything works fine until I delete a watched .scss file then I get

TypeError: watcher.deleted is not a function
at Gaze. (/var/www/dev/web/themes/custom/acas/node_modules/node-sass/bin/node-sass:266:21)
at emitOne (events.js:116:13)
at Gaze.emit (events.js:211:7)
at Gaze.emit (/var/www/dev/web/themes/custom/acas/node_modules/gaze/lib/gaze.js:128:32)
at /var/www/dev/web/themes/custom/acas/node_modules/gaze/lib/gaze.js:408:18
at Array.forEach ()
at /var/www/dev/web/themes/custom/acas/node_modules/gaze/lib/gaze.js:404:12
at FSReqWrap.oncomplete (fs.js:135:15)

  • NPM version (5.6.0):
  • Node version (8.9.4):
  • Node Process ({ http_parser: '2.7.0', node: '8.9.4', v8: '6.1.534.50', uv: '1.15.0', zlib: '1.2.11', ares: '1.10.1-DEV', modules: '57', nghttp2: '1.25.0', openssl: '1.0.2n', icu: '59.1', unicode: '9.0', cldr: '31.0.1', tz: '2017b' } ):
  • Node Platform (linux):
  • 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 (node-sass@4.7.2):

In watcher.js there is no function called watcher.deleted but there is watcher.removed. Editing node-sass to call this instead gives 'Error: ENOENT: no such file or directory,'. Had to give up

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