빌드 안될때
이미지 빌드하다가 아래와 같은 오류가 날때
Failed to minify the bundle. Error: static/js/2.20e06688.chunk.js from Terser
RangeError: Invalid string length
at stringify (<anonymous>)
at new Promise (<anonymous>)
at /var/jenkins_home/workspace/WEBTOB_WAPL_BUILD_WORKS/node_modules/react-scripts/scripts/build.js:196:23
at finalCallback (/var/jenkins_home/workspace/WEBTOB_WAPL_BUILD_WORKS/node_modules/webpack/lib/Compiler.js:257:39)
at /var/jenkins_home/workspace/WEBTOB_WAPL_BUILD_WORKS/node_modules/webpack/lib/Compiler.js:273:13
at AsyncSeriesHook.eval [as callAsync] (eval at create (/var/jenkins_home/workspace/WEBTOB_WAPL_BUILD_WORKS/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at AsyncSeriesHook.lazyCompileHook (/var/jenkins_home/workspace/WEBTOB_WAPL_BUILD_WORKS/node_modules/tapable/lib/Hook.js:154:20)
at onCompiled (/var/jenkins_home/workspace/WEBTOB_WAPL_BUILD_WORKS/node_modules/webpack/lib/Compiler.js:271:21)
at /var/jenkins_home/workspace/WEBTOB_WAPL_BUILD_WORKS/node_modules/webpack/lib/Compiler.js:681:15
at AsyncSeriesHook.eval [as callAsync] (eval at create (/var/jenkins_home/workspace/WEBTOB_WAPL_BUILD_WORKS/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at AsyncSeriesHook.lazyCompileHook (/var/jenkins_home/workspace/WEBTOB_WAPL_BUILD_WORKS/node_modules/tapable/lib/Hook.js:154:20)
at /var/jenkins_home/workspace/WEBTOB_WAPL_BUILD_WORKS/node_modules/webpack/lib/Compiler.js:678:31
at AsyncSeriesHook.eval [as callAsync] (eval at create (/var/jenkins_home/workspace/WEBTOB_WAPL_BUILD_WORKS/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at AsyncSeriesHook.lazyCompileHook (/var/jenkins_home/workspace/WEBTOB_WAPL_BUILD_WORKS/node_modules/tapable/lib/Hook.js:154:20)
at /var/jenkins_home/workspace/WEBTOB_WAPL_BUILD_WORKS/node_modules/webpack/lib/Compilation.js:1423:35
at AsyncSeriesHook.eval [as callAsync] (eval at create (/var/jenkins_home/workspace/WEBTOB_WAPL_BUILD_WORKS/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at AsyncSeriesHook.lazyCompileHook (/var/jenkins_home/workspace/WEBTOB_WAPL_BUILD_WORKS/node_modules/tapable/lib/Hook.js:154:20)
at /var/jenkins_home/workspace/WEBTOB_WAPL_BUILD_WORKS/node_modules/webpack/lib/Compilation.js:1414:32
Read more here: https://bit.ly/CRA-build-minify
rm -rf yarn.lock
yarn cache clean