이미지 빌드하다가 아래와 같은 오류가 날때
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
'Front > React' 카테고리의 다른 글
React Cache Router (0) | 2021.11.02 |
---|---|
웹/모바일 모노레포 프로젝트 패키지 설계 및 라우팅 (0) | 2021.10.25 |
React-Router-Dom VS React-Router (0) | 2021.09.14 |
HashRouter의 location.state (0) | 2021.01.19 |
MOBX Store 모델이 변경되었어도 렌더링이 안되는 이슈 (0) | 2020.09.10 |