Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
angular2网页包未解析变量webstorm_Angular_Webpack_Webpack Dev Server - Fatal编程技术网

angular2网页包未解析变量webstorm

angular2网页包未解析变量webstorm,angular,webpack,webpack-dev-server,Angular,Webpack,Webpack Dev Server,我正在尝试在我的angular2项目上安装Webpack 一切正常,但webstorm在我的webpack.config.ts文件中检测未解析的变量。 以下是代码的一部分: module.exports = function makeWebpackConfig() { var config = {}; if (isProd) { config.devtool = 'source-map'; } else if (isTest) { config.devtool = 'inl

我正在尝试在我的angular2项目上安装Webpack

一切正常,但webstorm在我的webpack.config.ts文件中检测未解析的变量。 以下是代码的一部分:

module.exports = function makeWebpackConfig() {

var config = {};


if (isProd) {
    config.devtool = 'source-map';
}
else if (isTest) {
    config.devtool = 'inline-source-map';
}
else {
    config.devtool = 'eval-source-map';
}
devtool是webstorm的未解析变量。我不知道为什么。 我在该文件中有相同的问题:

config.entry
config.output
config.module
config.resolve
config.plugins
config.devServer
但该项目正在发挥作用。谢谢你的帮助