개발/nodejs / / 2023. 2. 8. 02:31

[Capstone Project] HookWebpackError: Not supported

반응형
※ 해당 글은 capstone 종합설계 프로젝트를 하면서 적었던 일지를 돌아보며 작성한 것입니다.

개발일지 2022.10.08 

<e> [webpack-dev-middleware] HookWebpackError: Not supported
<e>     at makeWebpackError (C:\WebProjects\VirtualFashionProject\testEnvironment\shin\ModelVertexAdjust\node_modules\webpack\lib\HookWebpackError.js:48:9)      
<e>     at C:\WebProjects\VirtualFashionProject\testEnvironment\shin\ModelVertexAdjust\node_modules\webpack\lib\Compilation.js:3060:12
<e>     at eval (eval at create (C:\WebProjects\VirtualFashionProject\testEnvironment\shin\ModelVertexAdjust\node_modules\tapable\lib\HookCodeFactory.js:33:10), 
<anonymous>:54:1)
<e>     at C:\WebProjects\VirtualFashionProject\testEnvironment\shin\ModelVertexAdjust\node_modules\webpack\lib\Compilation.js:510:26
<e>     at C:\WebProjects\VirtualFashionProject\testEnvironment\shin\ModelVertexAdjust\node_modules\copy-webpack-plugin\dist\index.js:710:13
<e>     at runMicrotasks (<anonymous>)
<e>     at processTicksAndRejections (internal/process/task_queues.js:97:5)
<e> -- inner error --
<e> Error: Not supported
<e>     at C:\WebProjects\VirtualFashionProject\testEnvironment\shin\ModelVertexAdjust\node_modules\copy-webpack-plugin\dist\index.js:706:13
<e>     at fn (C:\WebProjects\VirtualFashionProject\testEnvironment\shin\ModelVertexAdjust\node_modules\webpack\lib\Compilation.js:509:9)
<e>     at Hook.eval [as callAsync] (eval at create (C:\WebProjects\VirtualFashionProject\testEnvironment\shin\ModelVertexAdjust\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:51:1)
<e>     at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (C:\WebProjects\VirtualFashionProject\testEnvironment\shin\ModelVertexAdjust\node_modules\tapable\lib\Hook.js:18:14)
<e>     at cont (C:\WebProjects\VirtualFashionProject\testEnvironment\shin\ModelVertexAdjust\node_modules\webpack\lib\Compilation.js:3057:34)
<e>     at C:\WebProjects\VirtualFashionProject\testEnvironment\shin\ModelVertexAdjust\node_modules\webpack\lib\Compilation.js:3105:10
<e>     at symbolIterator (C:\WebProjects\VirtualFashionProject\testEnvironment\shin\ModelVertexAdjust\node_modules\neo-async\async.js:3485:9)
<e>     at timesSync (C:\WebProjects\VirtualFashionProject\testEnvironment\shin\ModelVertexAdjust\node_modules\neo-async\async.js:2297:7)
<e>     at Object.eachLimit (C:\WebProjects\VirtualFashionProject\testEnvironment\shin\ModelVertexAdjust\node_modules\neo-async\async.js:3463:5)
<e>     at Compilation.createChunkAssets (C:\WebProjects\VirtualFashionProject\testEnvironment\shin\ModelVertexAdjust\node_modules\webpack\lib\Compilation.js:4526:12)
<e> caused by plugins in Compilation.hooks.processAssets
<e> Error: Not supported
<e>     at C:\WebProjects\VirtualFashionProject\testEnvironment\shin\ModelVertexAdjust\node_modules\copy-webpack-plugin\dist\index.js:706:13
<e>     at fn (C:\WebProjects\VirtualFashionProject\testEnvironment\shin\ModelVertexAdjust\node_modules\webpack\lib\Compilation.js:509:9)
<e>     at Hook.eval [as callAsync] (eval at create (C:\WebProjects\VirtualFashionProject\testEnvironment\shin\ModelVertexAdjust\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:51:1)
<e>     at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (C:\WebProjects\VirtualFashionProject\testEnvironment\shin\ModelVertexAdjust\node_modules\tapable\lib\Hook.js:18:14)
async\async.js:3485:9)                                                                                                  mpilation.js:3057:34)
<e>     at timesSync (C:\WebProjects\VirtualFashionProject\testEnvironment\shin\ModelVertexAdjust\node_modules\neo-asyncion.js:3105:10\async.js:2297:7)                                                                                                       async\async.js:3485:9)
<e>     at Object.eachLimit (C:\WebProjects\VirtualFashionProject\testEnvironment\shin\ModelVertexAdjust\node_modules\ne\async.js:2297:7)<e>     at Compilation.createChunkAssets (C:\WebProjects\VirtualFashionProject\testEnvironment\shin\ModelVertexAdjust\noo-async\async.js:3463:5)de_modules\webpack\lib\Compilation.js:4526:12)

프로다른 환경에서 git clone을 뜨고 npm start를 통해 실행하려고 하니까 위와 같은 오류가 발생했다.

 

HookWebpackError: Not supported when copy-webpack-plugin is used on Windows

 

HookWebpackError: Not supported when copy-webpack-plugin is used on Windows

I'm running into an error on Windows 10 whenever I try to run webpack, it works fine on macOS. This is the error [webpack-cli] HookWebpackError: Not supported It runs fine without "CopyPlugin&...

stackoverflow.com

정확하게 어떤 오류인지는 파악하지 못했고, 위를 포스팅을 따라서 npm으로 node를 update 해보니까 정상적으로 실행되었다. 

반응형
  • 네이버 블로그 공유
  • 네이버 밴드 공유
  • 페이스북 공유
  • 카카오스토리 공유