2
R
Ritu Garg

Error during Truffle Serve step

While executing TRUFFLE SERVE command, system gives the following error-

Serving static assets in .\build on port 8080…
Rebuilding…

*******************************************************
C:\Users\shrija\AppData\Roaming\npm\node_modules\truffle\build\webpack:\~\chokidar\lib\fsevents-handler.js:26
return (new fsevents(path)).on(‘fsevent’, callback).start();
^
TypeError: fsevents is not a constructor
at createFSEventsInstance (C:\Users\shrija\AppData\Roaming\npm\node_modules\ truffle\build\webpack:\~\chokidar\lib\fsevents-handler.js:26:1)
at setFSEventsListener (C:\Users\shrija\AppData\Roaming\npm\node_modules\tru ffle\build\webpack:\~\chokidar\lib\fsevents-handler.js:80:1)
at FSWatcher.FsEventsHandler._watchWithFsEvents (C:\Users\shrija\AppData\Roa ming\npm\node_modules\truffle\build\webpack:\~\chokidar\lib\fsevents-handler.js: 244:1)
at FSWatcher. (C:\Users\shrija\AppData\Roaming\npm\node_modules\t ruffle\build\webpack:\~\chokidar\lib\fsevents-handler.js:378:1)
at LOOP (fs.js:1753:14)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
*******************************************************
Please help.

Answers

  1. 2
    s
    admos slay

    I’ve got this error too. Any solution?

  2. 2
    Jack Wu
    Jack Wu

    Hi guys, can you try “truffle init webpack” or “truffle init” or “truffle unbox webpack”?

    It’s a known issue with a version of truffle, you can find more info about it at these links.

    https://github.com/trufflesuite/truffle/issues/463
    https://github.com/trufflesuite/truffle/issues/448