generativefm / generative.fm

A platform for playing generative music in the browser.
https://generative.fm
MIT License
1.59k stars 86 forks source link

Cannot read property 'readdir' of undefined #98

Closed soareswallace closed 5 years ago

soareswallace commented 5 years ago

After following the readme installation procedure I was getting this error:

`/Users/wallace/Github/generative.fm/webpack.config.js:83 .readdir(path.resolve('./src')) ^

TypeError: Cannot read property 'readdir' of undefined at Object. (/Users/wallace/Github/generative.fm/webpack.config.js:83:3) at Module._compile (module.js:569:30) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:503:32) at tryModuleLoad (module.js:466:12) at Function.Module._load (module.js:458:3) at Module.require (module.js:513:17) at require (internal/module.js:11:18) at WEBPACK_OPTIONS (/Users/wallace/Github/generative.fm/node_modules/webpack-cli/bin/convert-argv.js:115:13) at requireConfig (/Users/wallace/Github/generative.fm/node_modules/webpack-cli/bin/convert-argv.js:117:6)`

alexbainter commented 5 years ago

What version of Node are you using? I'll bet you're on one that doesn't have the fs.promises API, which is why it's undefined. You probably need to be on Node >= 10, and I ought to add that detail to the readme.

soareswallace commented 5 years ago

I will check that is probably below 10. Once I confirm I will close this issue! 👍🏼

soareswallace commented 5 years ago

Yeap, version 8.2.1