eshon / ol3buildr

0 stars 0 forks source link

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

Open eshon opened 5 years ago

eshon commented 5 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.
eshon commented 5 years ago

➤ wudongyang commented:

MAC 10.12.6

eshon commented 5 years ago

➤ wudongyang commented:

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 constructorinstalled fsevnts does not work, same error.

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