Webpack 无服务器Web包找不到模块'/节点/节点模板插件';

Webpack 无服务器Web包找不到模块'/节点/节点模板插件';,webpack,serverless-framework,Webpack,Serverless Framework,我正在尝试使用,虽然单独运行webpack可以正常工作,但尝试运行无服务器webpack失败,原因是找不到模块。“/node/NodeTemplatePlugin” 我的serverless.yml文件如下: 服务:kamehameha 供应商: 名称:aws 运行时间:nodejs6.10 功能: getDeltas: 处理程序:bundle.getDelta 插件: -无服务器网页包确保在serverless.yml中的自定义部分的网页包配置中设置了includeModules:true

我正在尝试使用,虽然单独运行webpack可以正常工作,但尝试运行无服务器webpack失败,原因是
找不到模块。“/node/NodeTemplatePlugin”

我的serverless.yml文件如下:

服务:kamehameha
供应商:
名称:aws
运行时间:nodejs6.10
功能:
getDeltas:
处理程序:bundle.getDelta
插件:

-无服务器网页包
确保在
serverless.yml
中的
自定义
部分的网页包配置中设置了
includeModules:true

从文件:

custom:
  webpack:
    webpackConfig: 'webpack.config.js'   # Name of webpack configuration file
    includeModules: false   # Node modules configuration for packaging
    packager: 'npm'   # Packager that will be used to package your external modules
    excludeFiles: src/**/*.test.js # Provide a glob for files to ignore

您是否尝试过声明
package:individually:true
?@TrentBartlem现在我这样做了。不幸的是,这并没有解决它。