• 로그인
  • 장바구니에 상품이 없습니다.

home2 게시판 Vue 게시판 vue add pwa 한 후 에러발생 digital envelope routines::unsupported

vue add pwa 한 후 에러발생 digital envelope routines::unsupported

2 글 보임 - 1 에서 2 까지 (총 2 중에서)
  • 글쓴이
  • #117682

    임효열
    참가자
    vue add pwa까지는 잘 되어서 registerServiceWorker.js도 잘 생성되었는데 npm run build를 하면
    > vuestagram@0.1.0 build
    > vue-cli-service build
    -  Building for production...
     ERROR  Failed to compile with 2 errors                                             오후 3:11:00
     error
    js/app.1da55795.js from Terser
    Error: error:0308010C:digital envelope routines::unsupported
        at new Hash (node:internal/crypto/hash:68:19)
        at Object.createHash (node:crypto:138:10)
        at C:\Users\User\Desktop\쀼우\vuestagram\node_modules\terser-webpack-plugin\dist\index.js:217:37
        at Array.forEach (<anonymous>)
        at TerserPlugin.optimizeFn (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\terser-webpack-plugin\dist\index.js:160:259)
        at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:7:1)
        at AsyncSeriesHook.lazyCompileHook (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\tapable\lib\Hook.js:154:20)
        at C:\Users\User\Desktop\쀼우\vuestagram\node_modules\webpack\lib\Compilation.js:1409:36    
        at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1)
        at AsyncSeriesHook.lazyCompileHook (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\tapable\lib\Hook.js:154:20)
        at C:\Users\User\Desktop\쀼우\vuestagram\node_modules\webpack\lib\Compilation.js:1405:32    
        at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1)
        at AsyncSeriesHook.lazyCompileHook (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\tapable\lib\Hook.js:154:20)
        at Compilation.seal (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\webpack\lib\Compilation.js:1342:27)
        at C:\Users\User\Desktop\쀼우\vuestagram\node_modules\webpack\lib\Compiler.js:675:18        
        at C:\Users\User\Desktop\쀼우\vuestagram\node_modules\webpack\lib\Compilation.js:1261:4     
        at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:24:1)
        at AsyncSeriesHook.lazyCompileHook (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\tapable\lib\Hook.js:154:20)
        at Compilation.finish (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\webpack\lib\Compilation.js:1253:28)
        at C:\Users\User\Desktop\쀼우\vuestagram\node_modules\webpack\lib\Compiler.js:672:17        
        at _done (eval at create (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:9:1)
        at eval (eval at create (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:32:22)
        at C:\Users\User\Desktop\쀼우\vuestagram\node_modules\webpack\lib\Compilation.js:1185:12    
        at C:\Users\User\Desktop\쀼우\vuestagram\node_modules\webpack\lib\Compilation.js:1097:9     
        at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
     error
    js/chunk-vendors.8abbd02e.js from Terser
    Error: error:0308010C:digital envelope routines::unsupported
        at new Hash (node:internal/crypto/hash:68:19)
        at Object.createHash (node:crypto:138:10)
        at C:\Users\User\Desktop\쀼우\vuestagram\node_modules\terser-webpack-plugin\dist\index.js:217:37
        at Array.forEach (<anonymous>)
        at TerserPlugin.optimizeFn (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\terser-webpack-plugin\dist\index.js:160:259)
        at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:7:1)
        at AsyncSeriesHook.lazyCompileHook (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\tapable\lib\Hook.js:154:20)
        at C:\Users\User\Desktop\쀼우\vuestagram\node_modules\webpack\lib\Compilation.js:1409:36    
        at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1)
        at AsyncSeriesHook.lazyCompileHook (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\tapable\lib\Hook.js:154:20)
        at C:\Users\User\Desktop\쀼우\vuestagram\node_modules\webpack\lib\Compilation.js:1405:32    
        at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1)
        at AsyncSeriesHook.lazyCompileHook (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\tapable\lib\Hook.js:154:20)
        at Compilation.seal (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\webpack\lib\Compilation.js:1342:27)
        at C:\Users\User\Desktop\쀼우\vuestagram\node_modules\webpack\lib\Compiler.js:675:18        
        at C:\Users\User\Desktop\쀼우\vuestagram\node_modules\webpack\lib\Compilation.js:1261:4     
        at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:24:1)
        at AsyncSeriesHook.lazyCompileHook (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\tapable\lib\Hook.js:154:20)
        at Compilation.finish (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\webpack\lib\Compilation.js:1253:28)
        at C:\Users\User\Desktop\쀼우\vuestagram\node_modules\webpack\lib\Compiler.js:672:17        
        at _done (eval at create (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:9:1)
        at eval (eval at create (C:\Users\User\Desktop\쀼우\vuestagram\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:32:22)
        at C:\Users\User\Desktop\쀼우\vuestagram\node_modules\webpack\lib\Compilation.js:1185:12    
        at C:\Users\User\Desktop\쀼우\vuestagram\node_modules\webpack\lib\Compilation.js:1097:9     
        at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
     ERROR  Build failed with errors.
    이런 에러가 뜹니다..ㅠ
    
    
    		
    	
    #117702

    임효열
    참가자
    해결했습니다!npm audit fix --force 하고 npm i -D eslint@7.32.0 하니까 되는것같아요!
2 글 보임 - 1 에서 2 까지 (총 2 중에서)
  • 답변은 로그인 후 가능합니다.

About

현재 월 700명 신규수강중입니다.

  (09:00~20:00) 빠른 상담은 카톡 플러스친구 코딩애플 (링크)
  admin@codingapple.com
  이용약관
ⓒ Codingapple, 강의 예제, 영상 복제 금지
top

© Codingapple, All rights reserved. 슈퍼로켓 에듀케이션 / 서울특별시 강동구 고덕로 19길 30 / 사업자등록번호 : 212-26-14752 온라인 교육학원업 / 통신판매업신고번호 : 제 2017-서울강동-0002 호 / 개인정보관리자 : 박종흠