AwesomeWebProjects / react-player

One audio player built with ReactJS, Web Audio API and Web Worker API
https://dazzling-jang-471a34.netlify.com/
MIT License
107 stars 22 forks source link

Failed to minify the bundle #35

Closed ghost closed 5 years ago

ghost commented 5 years ago

Whenever I tried to build this app I get this error: Failed to minify the bundle. Error: static/js/main.4be2b5ae.chunk.js from Terser

TypeError: Cannot read property 'minify' of undefined at compiler.run (C:\Users[REDACTED]\Downloads\React-Player-0.1.2\React-Player-0. 1.2\scripts\build.js:153:23) at finalCallback (C:\Users[REDACTED]\Downloads\React-Player-0.1.2\React-Player-0 .1.2\node_modules\webpack\lib\Compiler.js:210:39) at hooks.done.callAsync.err (C:\Users[REDACTED]\Downloads\React-Player-0.1.2\Rea ct-Player-0.1.2\node_modules\webpack\lib\Compiler.js:226:13) at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users[REDACTED]\Downl oads\React-Player-0.1.2\React-Player-0.1.2\node_modules\tapable\lib\HookCodeFact ory.js:32:10), :6:1) at AsyncSeriesHook.lazyCompileHook (C:\Users[REDACTED]\Downloads\React-Player-0. 1.2\React-Player-0.1.2\node_modules\tapable\lib\Hook.js:154:20) at onCompiled (C:\Users[REDACTED]\Downloads\React-Player-0.1.2\React-Player-0.1. 2\node_modules\webpack\lib\Compiler.js:224:21) at hooks.afterCompile.callAsync.err (C:\Users[REDACTED]\Downloads\React-Player-0 .1.2\React-Player-0.1.2\node_modules\webpack\lib\Compiler.js:553:14) at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users[REDACTED]\Downl oads\React-Player-0.1.2\React-Player-0.1.2\node_modules\tapable\lib\HookCodeFact ory.js:32:10), :6:1) at AsyncSeriesHook.lazyCompileHook (C:\Users[REDACTED]\Downloads\React-Player-0. 1.2\React-Player-0.1.2\node_modules\tapable\lib\Hook.js:154:20) at compilation.seal.err (C:\Users[REDACTED]\Downloads\React-Player-0.1.2\React-P layer-0.1.2\node_modules\webpack\lib\Compiler.js:550:30) at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users[REDACTED]\Downl oads\React-Player-0.1.2\React-Player-0.1.2\node_modules\tapable\lib\HookCodeFact ory.js:32:10), :6:1) at AsyncSeriesHook.lazyCompileHook (C:\Users[REDACTED]\Downloads\React-Player-0. 1.2\React-Player-0.1.2\node_modules\tapable\lib\Hook.js:154:20) at hooks.optimizeAssets.callAsync.err (C:\Users[REDACTED]\Downloads\React-Player -0.1.2\React-Player-0.1.2\node_modules\webpack\lib\Compilation.js:1295:35) at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users[REDACTED]\Downl oads\React-Player-0.1.2\React-Player-0.1.2\node_modules\tapable\lib\HookCodeFact ory.js:32:10), :6:1) at AsyncSeriesHook.lazyCompileHook (C:\Users[REDACTED]\Downloads\React-Player-0. 1.2\React-Player-0.1.2\node_modules\tapable\lib\Hook.js:154:20) at hooks.optimizeChunkAssets.callAsync.err (C:\Users[REDACTED]\Downloads\React-P layer-0.1.2\React-Player-0.1.2\node_modules\webpack\lib\Compilation.js:1286:32) Read more here: http://bit.ly/CRA-build-minify

I tried wht you said in readme.md but still failed the version of my react-scripts is 2.1.3

danielbarion commented 5 years ago

I downloaded now the github master.zip yarn // install packages yarn build // generate the build

Here all look fine...

ghost commented 5 years ago

Close the issue it turned out I was using outdated nodejs.