Here is an error (my project works correctly on dev, but when I try to build it, it throws me this error)
> node-react-sample@0.1.0 build /home/acquaint/WORK_DIRECTORY/altr
> node scripts/build.js
Creating an optimized production build...
Failed to compile.
Failed to minify the code from this file:
./node_modules/pdfjs-dist/build/pdf.js:341
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-react-sample@0.1.0 build: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-react-sample@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.