Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wudongyang opened this issue Jan 17, 2018 · 2 comments

Comments

@wudongyang
Copy link

wudongyang commented Jan 17, 2018

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
Copy link
Author

MAC 10.12.6

@wudongyang
Copy link
Author

wudongyang commented Jan 17, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant