1
0

More than 3 years have passed since last update.

webpackのビルドにてエラー。 TypeError: Cannot read property 'properties' of undefined

Posted at

エラー内容

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のバージョンを確認してみてください!

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0