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可以';t解决';angular2谷歌地图&x27;错误网页_Angular_Webpack - Fatal编程技术网

Angular2可以';t解决';angular2谷歌地图&x27;错误网页

Angular2可以';t解决';angular2谷歌地图&x27;错误网页,angular,webpack,Angular,Webpack,当我试图在某个过程中构建项目时,它会挂断并出现错误 ERROR in multi vendor Module not found: Error: Can't resolve 'angular2-google-maps' in 'path_to_project' @ multi vendor 我也得到这些警告。我不太明白到底是什么问题,我需要看看哪里 WARNING in ./~/chokidar/lib/fsevents-handler.js Module not foun

当我试图在某个过程中构建项目时,它会挂断并出现错误

ERROR in multi vendor

    Module not found: Error: Can't resolve 'angular2-google-maps' in 'path_to_project'
     @ multi vendor
我也得到这些警告。我不太明白到底是什么问题,我需要看看哪里

WARNING in ./~/chokidar/lib/fsevents-handler.js
Module not found: Error: Can't resolve 'fsevents' in 'page_to_project\node_modules\chokidar\lib'
 @ ./~/chokidar/lib/fsevents-handler.js 7:17-36
 @ ./~/chokidar/index.js
 @ ./~/watchpack/lib/DirectoryWatcher.js
 @ ./~/watchpack/lib/watcherManager.js
 @ ./~/watchpack/lib/watchpack.js
 @ (webpack)/lib/node/NodeWatchFileSystem.js
 @ (webpack)/lib/node ^\.\/.*$
 @ (webpack)/lib/node/NodeMainTemplate.runtime.js
 @ (webpack)/lib/node/NodeMainTemplatePlugin.js
 @ (webpack)/lib/node/NodeTemplatePlugin.js
 @ ./~/extract-text-webpack-plugin/loader.js
 @ ./~/extract-text-webpack-plugin/index.js
 @ multi vendor

WARNING in ./~/express/lib/view.js
78:29 Critical dependency: the request of a dependency is an expression

WARNING in ./~/bin-wrapper/index.js
5:34 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
webpack.dist.conf中的解析部分如下所示

resolve: {
    modulesDirectories: [
      'scripts',
      'node_modules'
    ],
    packageMains: ['angular2-google-maps'],
    externals: {
      "window":"window"
    },
    extensions: [
      '',
      '.webpack.js',
      '.web.js',
      '.js',
      '.jsx',
      '.ts'
    ]
  },