show alert("There was an error fetching your accounts."). but truffle test is success.
Do you have an Ethereum client running?
Please check out the documentation here: http://truffle.readthedocs.org
Please reopen if this doesn't fix your issue. Thanks!
@YyItRoad I have got the same problem,how you sovle it?
Getting the same problem. I am using testrpc. Did you solve tis problem?
Did you guys run truffle migrate before running truffle serve? You need to deploy your contracts first before you can have a website that interacts with them.
Yes, I did. I have tried again just to make sure i followed those steps and got the same error msg. Any clue?
I have installed the envionment in a server in c9.io. I am accessing the web page using a remote browser. Could this be the problem (the browser could not load the credentials)?
Getting the same problem. I'm using a remote virtual machine to developing the dapp and trying to access the website by local browser. Could this be the reason?
facing error with :
>truffle serve
Serving static assets in ./build on port 8080...
/usr/lib/node_modules/truffle/build/cli.bundled.js:124978
return (new fsevents(path)).on('fsevent', callback).start();
^
TypeError: fsevents is not a constructor
at createFSEventsInstance (/usr/lib/node_modules/truffle/build/cli.bundled.js:124978:11)
at setFSEventsListener (/usr/lib/node_modules/truffle/build/cli.bundled.js:125032:16)
at FSWatcher.FsEventsHandler._watchWithFsEvents (/usr/lib/node_modules/truffle/build/cli.bundled.js:125196:16)
at FSWatcher.<anonymous> (/usr/lib/node_modules/truffle/build/cli.bundled.js:125330:25)
at LOOP (fs.js:1773:14)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
I used webpack
Same issue for me on arch with testrpc:
> mkdir FsEventsError
> truffle init
> truffle migrate
> truffle serve
Serving static assets in ./build on port 8080...
/usr/lib/node_modules/truffle/build/cli.bundled.js:138158
return (new fsevents(path)).on('fsevent', callback).start();
^
TypeError: fsevents is not a constructor
at createFSEventsInstance (/usr/lib/node_modules/truffle/build/cli.bundled.js:138158:11)
at setFSEventsListener (/usr/lib/node_modules/truffle/build/cli.bundled.js:138212:16)
at FSWatcher.FsEventsHandler._watchWithFsEvents (/usr/lib/node_modules/truffle/build/cli.bundled.js:138376:16)
at FSWatcher.(/usr/lib/node_modules/truffle/build/cli.bundled.js:138510:25)
at gotStat (fs.js:1783:21)
at FSReqWrap.oncomplete (fs.js:152:21)
System Info:
kernel: x86_64 Linux 4.11.9-1-ARCH
node v8.2.1
npm 5.3.0
And I'm running testrpc in a different terminal
Same issue here. Using testrpc

getting same error on Windows 10. Please help
You need modify some files as this:
https://gengxuelei.github.io/2017/12/26/truffle%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/
modifypackage.json:
"dev": "webpack-dev-server --host 0.0.0.0 --port 8080"
modifytruffle.js:
development: {
host: 'yourIp',
port: 8545,
network_id: '*' // Match any network id
}
modifyapp/javascripts/app.js:
change:
window.web3 = new Web3(new Web3.providers.HttpProvider("http://127.0.0.1:9545"));
to:
window.web3 = new Web3(new Web3.providers.HttpProvider("http://yourIp:8545"));
substitute npm run dev for truffle server:
npm run dev
fsevents error need use webpack box & substitute npm run dev for truffle server
Most helpful comment
You need modify some files as this:
https://gengxuelei.github.io/2017/12/26/truffle%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/
modify
package.json:modify
truffle.js:modify
app/javascripts/app.js:change:
window.web3 = new Web3(new Web3.providers.HttpProvider("http://127.0.0.1:9545"));to:
substitute
npm run devfortruffle server:fseventserror need use webpack box & substitutenpm run devfortruffle server