webcompat / webcompat-reporter-extensions

Browser extensions to help report site compatibilty issues.
26 stars 22 forks source link

npm run build for windows on firefox, chrome and opera fails initially : TypeError: Cannot read property 'properties' of undefined #135

Closed mbuotidem closed 6 years ago

mbuotidem commented 6 years ago

npm run build for firefox, chrome and opera fail with error :

TypeError: Cannot read property 'properties' of undefined at module.exports (C:\Users\Michael\webcompat-reporter-extensions\node_modules\webpack-cli\bin\config-yargs.js:89:48) at C:\Users\Michael\webcompat-reporter-extensions\node_modules\webpack-cli\bin\webpack.js:60:27 at Object. (C:\Users\Michael\webcompat-reporter-extensions\node_modules\webpack-cli\bin\webpack.js:515:3) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17) at require (internal/module.js:11:18)

Fix : Downgrade to webpack@4.19.1 if you are on 4.20. See: https://github.com/webpack/webpack/issues/8082

run build fails

laghee commented 6 years ago

Webpack claims the problem is in the CLI, so an alternate fix (which worked for me locally) seems to be upgrading webpack-cli to ^3.

mbuotidem commented 6 years ago

Yes, your fix works for me as well.