Nuxt.js: TypeError: fsevents.watch is not a functio

Created on 14 May 2019  路  6Comments  路  Source: nuxt/nuxt.js

Version

v2.7.0

Reproduction link

https://github.com/nuxt/nuxt.js/releases/tag/v2.7.0

Steps to reproduce

After updating to version 2.7 after running "yarn dev" displays the following error:

~~~~
/node_modules/@nuxt/builder/node_modules/chokidar/lib/fsevents-handler.js:57
const stop = fsevents.watch(path, callback);
^

TypeError: fsevents.watch is not a function
at createFSEventsInstance (/Applications/MAMP/htdocs/chatbot-admin/node_modules/@nuxt/builder/node_modules/chokidar/lib/fsevents-handler.js:57:25)
at setFSEventsListener (/Applications/MAMP/htdocs/chatbot-admin/node_modules/@nuxt/builder/node_modules/chokidar/lib/fsevents-handler.js:111:16)
at FsEventsHandler._watchWithFsEvents (/Applications/MAMP/htdocs/chatbot-admin/node_modules/@nuxt/builder/node_modules/chokidar/lib/fsevents-handler.js:296:18)
at initWatch (/Applications/MAMP/htdocs/chatbot-admin/node_modules/@nuxt/builder/node_modules/chokidar/lib/fsevents-handler.js:433:27)
at LOOP (fs.js:1830:14)
at process._tickCallback (internal/process/next_tick.js:61:11)
error Command failed with exit code 1.
~~~~

error.png

What is expected ?

run on localhost:3000

What is actually happening?

It is not possible to launch a development environment

This bug report is available on Nuxt community (#c9211)
bug-report

Most helpful comment

nodejs v10.3.0
After upgrading to v12.2.0, everything is fine

All 6 comments

Hi. What node.js version do you use?

Same issue here on macOS Mojave with node v12.1.0 / yarn 1.15.2.

Cab you please try cleaning up yarn.lock and try again?

It works after deleted the yarn.lock and yarn again 馃憤馃徎

nodejs v10.3.0
After upgrading to v12.2.0, everything is fine

update nodejs to v12.7.0 can make it ,too.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lazycrazy picture lazycrazy  路  3Comments

o-alexandrov picture o-alexandrov  路  3Comments

gary149 picture gary149  路  3Comments

uptownhr picture uptownhr  路  3Comments

vadimsg picture vadimsg  路  3Comments