Bug report
WARNING in ./node_modules/bin-wrapper/index.js 5:34-41
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@ ./node_modules/pngquant-bin/lib/index.js
@ ./node_modules/pngquant-bin/index.js
@ ./node_modules/imagemin-pngquant/index.js
@ ./node_modules/image-webpack-loader/index.js
@ dll reactBoilerplateDeps
WARNING in ./node_modules/execa/node_modules/cross-spawn/index.js
Module not found: Error: Can't resolve 'spawn-sync' in '/home/arindampradhan/Bitbucket/website_v3/node_modules/execa/node_modules/cross-spawn'
@ ./node_modules/execa/node_modules/cross-spawn/index.js
@ ./node_modules/execa/index.js
@ ./node_modules/exec-buffer/index.js
@ ./node_modules/imagemin-webp/index.js
@ ./node_modules/image-webpack-loader/index.js
@ dll reactBoilerplateDeps
WARNING in ./node_modules/imagemin-mozjpeg/node_modules/cross-spawn/index.js
Module not found: Error: Can't resolve 'spawn-sync' in '/home/arindampradhan/Bitbucket/website_v3/node_modules/imagemin-mozjpeg/node_modules/cross-spawn'
@ ./node_modules/imagemin-mozjpeg/node_modules/cross-spawn/index.js
@ ./node_modules/imagemin-mozjpeg/node_modules/execa/index.js
@ ./node_modules/imagemin-mozjpeg/index.js
@ ./node_modules/image-webpack-loader/index.js
@ dll reactBoilerplateDeps
ERROR in ./node_modules/cross-spawn/index.js
Module not found: Error: Can't resolve 'child_process' in '/home/arindampradhan/Bitbucket/website_v3/node_modules/cross-spawn'
@ ./node_modules/cross-spawn/index.js 3:11-35
@ ./node_modules/imagemin-pngquant/node_modules/execa/index.js
@ ./node_modules/imagemin-pngquant/index.js
@ ./node_modules/image-webpack-loader/index.js
@ dll reactBoilerplateDeps
ERROR in ./node_modules/execa/index.js
Module not found: Error: Can't resolve 'child_process' in '/home/arindampradhan/Bitbucket/website_v3/node_modules/execa'
@ ./node_modules/execa/index.js 2:21-45
@ ./node_modules/exec-buffer/index.js
@ ./node_modules/imagemin-webp/index.js
@ ./node_modules/image-webpack-loader/index.js
@ dll reactBoilerplateDeps
ERROR in ./node_modules/execa/node_modules/cross-spawn/index.js
Module not found: Error: Can't resolve 'child_process' in '/home/arindampradhan/Bitbucket/website_v3/node_modules/execa/node_modules/cross-spawn'
@ ./node_modules/execa/node_modules/cross-spawn/index.js 3:9-33
@ ./node_modules/execa/index.js
@ ./node_modules/exec-buffer/index.js
@ ./node_modules/imagemin-webp/index.js
@ ./node_modules/image-webpack-loader/index.js
@ dll reactBoilerplateDeps
ERROR in ./node_modules/imagemin-mozjpeg/node_modules/cross-spawn/index.js
Module not found: Error: Can't resolve 'child_process' in '/home/arindampradhan/Bitbucket/website_v3/node_modules/imagemin-mozjpeg/node_modules/cross-spawn'
@ ./node_modules/imagemin-mozjpeg/node_modules/cross-spawn/index.js 3:9-33
@ ./node_modules/imagemin-mozjpeg/node_modules/execa/index.js
@ ./node_modules/imagemin-mozjpeg/index.js
@ ./node_modules/image-webpack-loader/index.js
@ dll reactBoilerplateDeps
ERROR in ./node_modules/imagemin-mozjpeg/node_modules/execa/index.js
Module not found: Error: Can't resolve 'child_process' in '/home/arindampradhan/Bitbucket/website_v3/node_modules/imagemin-mozjpeg/node_modules/execa'
@ ./node_modules/imagemin-mozjpeg/node_modules/execa/index.js 2:21-45
@ ./node_modules/imagemin-mozjpeg/index.js
@ ./node_modules/image-webpack-loader/index.js
@ dll reactBoilerplateDeps
ERROR in ./node_modules/imagemin-pngquant/node_modules/execa/index.js
Module not found: Error: Can't resolve 'child_process' in '/home/arindampradhan/Bitbucket/website_v3/node_modules/imagemin-pngquant/node_modules/execa'
@ ./node_modules/imagemin-pngquant/node_modules/execa/index.js 3:21-45
@ ./node_modules/imagemin-pngquant/index.js
@ ./node_modules/image-webpack-loader/index.js
@ dll reactBoilerplateDeps
Done in 13.98s.
What is the current behavior?
After installing new modules like https://github.com/Hellenic/react-hexgrid
the build started failing
What is the expected behavior?
Other relevant information:
webpack version: “4.12.0”
Node.js version: v8.11.3
Operating System: Ubuntu 14.04.5 LTS
Additional tools: yarn
Fixed it. sorry for the inconvenience … Regards
What was the fix?
@arindampradhan
