エラー内容
TypeError: Cannot read property 'properties' of undefined
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ build: `webpack`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
今回のエラーで見るべきは、TypeError: Cannot read property 'properties' of undefined
の部分。
これは古いバージョンのwebpackを使っていることで吐かれるエラーみたいです。
解決法
僕の場合は
"webpack": "^4.5.0",
"webpack-cli": "^2.0.14"
から
"webpack": "^4.43.0",
"webpack-cli": "^3.1.1"
一度webpackのバージョンを確認してみてください!