Angular 4 webpack tapable namespace没有导出的成员插件

时间:2018-05-09 07:30:34

标签: angular npm webpack node-modules

当我想在我的代码Angular4上运行测试时出现以下错误,我已经搜索了很多但没有运气,我卡住了,任何想法都会受到赞赏。安装node_modules

后出现此错误

node_modules/@types/webpack/index.d.ts:556:28: Type 'typeof "/node_modules/@types/tapable/index"' is not a constructor function type. Error at node_modules/@types/webpack/index.d.ts:598:46: Namespace '"/node_modules/@types/tapable/index"' has no exported member 'Plugin'. Error at node_modules/@types/webpack/index.d.ts:602:53: Namespace '"/node_modules/@types/tapable/index"' has no exported member 'Plugin'. at Runner.run (\node_modules\tslint\lib\runner.js:92:27)

这是我的package.json

"@types/tapable": "1.0.0", "@types/webpack": "^2.2.16", "webpack": "^2.7.0", "webpack-dev-middleware": "^1.10.1", "webpack-dev-server": "~2.4.2", "webpack-dll-bundles-plugin": "^1.0.0-beta.5", "webpack-merge": "~4.1.0"

0 个答案:

没有答案