错误:无法将类型实体 i2.ExtensionsModule 解析为符号

问题描述 投票:0回答:1

我正在将 Angular 5.x 升级到 15.x.

我已经解决了除此之外的大多数构建错误 -

    ./src/main.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
Error: Cannot resolve type entity i2.ExtensionsModule to symbol

./src/polyfills.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
Error: Cannot resolve type entity i2.ExtensionsModule to symbol

我尝试在我的 angular.json 文件中添加 "preserveSymlinks": true 但它没有帮助。

我也试过添加

  "paths": {
    "@syncfusion/*": [
      "./node_modules/@syncfusion/*"
    ],
  }

我的 tsconfig.json 文件没有运气。解决此问题的任何指示表示赞赏。

谢谢

angular upgrade angular.json tsconfig.json
1个回答
0
投票

安装“国际”:“1.2.5”解决了我的问题。

添加依赖 "intl": "1.2.5" 到你的 package.json

© www.soinside.com 2019 - 2024. All rights reserved.