eshon / conference

A simple Ethereum smart contract + DApp example
175 stars 106 forks source link

truffle serve :Error building Build configuration can no longer be specified as an object #23

Open wudongyang opened 6 years ago

wudongyang commented 6 years ago

I got this error.

Truffle v3.2.1

$ truffle serve
Serving static assets in ./build on port 8080...
Rebuilding...
Error building:

Build configuration can no longer be specified as an object. Please see our documentation for an updated list of supported build configurations.

Build failed. See above.
wudongyang commented 6 years ago

MAC 10.12.6

wudongyang commented 6 years ago

Change to Truffle v4.0.4

$ truffle serve
Serving static assets in ./build on port 8080...
Rebuilding...
Error building:

Build configuration can no longer be specified as an object. Please see our documentation for an updated list of supported build configurations.

Build failed. See above.
/usr/local/lib/node_modules/truffle/build/cli.bundled.js:220978
  return (new fsevents(path)).on('fsevent', callback).start();
          ^

TypeError: fsevents is not a constructor

installed fsevnts does not work, same error.

npm install -g fsevents 
npm uninstall -g truffle
npm install -g truffle