gregnb / filemanager-webpack-plugin

Copy, move, archive (zip/tar/tar.gz), delete files and directories before and after Webpack builds. Win32/Mac/*Nix supported
MIT License
463 stars 34 forks source link

使用过程报错 #99

Closed chenyijie-bit closed 3 years ago

chenyijie-bit commented 3 years ago

building for production.../Users/Desktop/17assess-FE/node_modules/_filemanager-webpack-plugin@5.0.0@filemanager-webpack-plugin/lib/index.js:579 this.logger = compiler.getInfrastructureLogger(PLUGIN_NAME); ^

TypeError: compiler.getInfrastructureLogger is not a function at FileManagerPlugin.apply (/Users/wenba/Desktop/17assess-FE/node_modules/_filemanager-webpack-plugin@5.0.0@filemanager-webpack-plugin/lib/index.js:579:28) at Compiler.apply (/Users/wenba/Desktop/17assess-FE/node_modules/_tapable@0.2.9@tapable/lib/Tapable.js:375:16) at webpack (/Users/wenba/Desktop/17assess-FE/node_modules/_webpack@3.12.0@webpack/lib/webpack.js:33:19) at /Users/wenba/Desktop/17assess-FE/build/build.js:27:3 at next (/Users/wenba/Desktop/17assess-FE/node_modules/_rimraf@2.7.1@rimraf/rimraf.js:83:7) at CB (/Users/wenba/Desktop/17assess-FE/node_modules/_rimraf@2.7.1@rimraf/rimraf.js:119:9) at /Users/wenba/Desktop/17assess-FE/node_modules/_rimraf@2.7.1@rimraf/rimraf.js:145:14

sibiraj-s commented 3 years ago

Duplicate of #91. See https://github.com/gregnb/filemanager-webpack-plugin/issues/91#issuecomment-818441476