在我添加@types/webpack-stream之前,一切都是正常的,但由于某些原因,我得到了一个非常糟糕的错误:
node_modules/@types/webpack-stream/index.d.ts'/node_modules/webpack-stream/index.js' implicitly has an 'any' type.Try `npm i --save-dev @types/webpack
SyntaxError: Unexpected token (14:13) at Parser.parse (W:\TestApp\node_modules\webpack-stream\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (W:\TestApp\node_
我使用的是Gulp和webpack,我在我的gulpfile.js中同时导入了webpack-stream和webpack-stream,但是出于某种原因,控制台上写着webpack is not defined我的进口是正确的:var webpackStream = require('webpack-stream');
我的任务应该是编译