【问题标题】:Serverless Typescript Error : TypeError: Cannot read property '1' of null无服务器打字稿错误:TypeError:无法读取 null 的属性“1”
【发布时间】:2021-11-03 00:28:14
【问题描述】:

Serverless-Webpack Typescript Error“serverless-webpack”错误。

出现错误:类型错误 ------------------------------------------ ---

TypeError: 无法读取 null 的属性“1”

Stack - 使用 Typescript、Node.js 和 AWS Lambda 的无服务器后端

对我当前的堆栈使用 serverless-webpack 包,它一直工作到最后一天,突然它停止工作并低于错误。尝试为 serverless-webpack 降级版本,但仍然出现错误。

【问题讨论】:

  • 您使用的无服务器框架是什么版本的?
  • 我的无服务器版本是 2.57.0

标签: node.js typescript frameworks serverless serverless-webpack-plugin


【解决方案1】:

node 和 npm 版本呢?我在切换到 node.14 和 npm.7 时遇到了一些问题。 我在互联网上发现,npm.7 存在一些问题。如果您也是这种情况,请降级 npm。

【讨论】:

    猜你喜欢
    • 2021-12-04
    • 2017-06-15
    • 2019-01-31
    • 2015-05-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-06-09
    相关资源
    最近更新 更多