webpack-obfuscator运行报错

webpack 版本:3.6.0

 webpack-obfuscator版本:0.28.4

build时报错:

 building for production...F:\0du\code\Code-JavaScript\VUE\immovableculturalrelic\vue-src\node_modules\webpack-obfuscator\dist\index.js:22
        compiler.hooks.emit.tap(pluginName, (compilation) => {
                       ^

TypeError: Cannot read property 'emit' of undefined
    at WebpackObfuscator.apply (F:\0du\code\Code-JavaScript\VUE\immovableculturalrelic\vue-src\node_modules\webpack-obfuscator\dist\index.js:22:24)
    at Compiler.apply (F:\0du\code\Code-JavaScript\VUE\immovableculturalrelic\vue-src\node_modules\tapable\lib\Tapable.js:375:16)
    at webpack (F:\0du\code\Code-JavaScript\VUE\immovableculturalrelic\vue-src\node_modules\webpack\lib\webpack.js:33:19)
    at F:\0du\code\Code-JavaScript\VUE\immovableculturalrelic\vue-src\build\build.js:19:3
    at next (F:\0du\code\Code-JavaScript\VUE\immovableculturalrelic\vue-src\node_modules\rimraf\rimraf.js:83:7)
    at CB (F:\0du\code\Code-JavaScript\VUE\immovableculturalrelic\vue-src\node_modules\rimraf\rimraf.js:119:9)
    at F:\0du\code\Code-JavaScript\VUE\immovableculturalrelic\vue-src\node_modules\rimraf\rimraf.js:145:14
    at FSReqCallback.oncomplete (fs.js:158:21)

请问,该怎么解决?

你可能感兴趣的:(webpack-obfuscator运行报错)