目标入口点“ @ nativescript / angular”中的错误缺少对运行Nativescript Angular 9项目的依赖

时间:2020-06-21 19:32:48

标签: angular nativescript angular2-nativescript angular9 nativescript-angular

我收到一个错误的Nativescript Angular 9项目,该项目在两周前就开始了。错误是这样的:

ERROR in The target entry-point "@nativescript/angular" has missing dependencies:  - @nativescript/core/ui/layouts/layout-base

enter image description here 我们正在开发一个共享代码库,直到最后一天,我们都可以同时运行Web代码和本机代码。今天,当我尝试运行Web应用程序项目时,出现此错误。在Google搜索时,获得了更新我的ngcc.config.js文件的建议。我按照其他建议(https://github.com/NativeScript/nativescript-angular/issues/2171https://github.com/NativeScript/nativescript-angular/issues/2151)进行了此操作。 但是我的ngcc.config.js文件中具有正确的结构:

module.exports = {
  'packages': {
    '@nativescript/angular': {
      entryPoints: {
        '.': {
          override: {
            main: './index.js',
            typings: './index.d.ts',
          },
          ignoreMissingDependencies: true,
        }
      },
      ignorableDeepImportMatchers: [
        /zone.js\//,
        /tns-core-modules\//,
        /@nativescript\/core\//
      ]
    },
    'nativescript-localize': {
      entryPoints: {
        '.': {
          override: {
            main: './angular.js',
            typings: './angular.d.ts',
          },
          ignoreMissingDependencies: true,
        },
      },
      ignorableDeepImportMatchers: [
        /@nativescript\/core\//
      ]
    },
    'nativescript-datetimepicker': {
      entryPoints: {
        '.': {
          override: {
            main: './index.js',
            typings: './index.d.ts',
          },
          ignoreMissingDependencies: true,
        },
        'angular': {
          override: {
            main: './index.js',
            typings: './index.d.ts',
          },
          ignoreMissingDependencies: true,
        }
      },
      ignorableDeepImportMatchers: [
        /tns-core-modules\//,
        /@nativescript\/core\//,
        /@nativescript\/angular\//
      ]
    },
    'nativescript-ui-sidedrawer': {
      entryPoints: {
        'angular': {
          override: {
            main: './side-drawer-directives.js',
            typings: './side-drawer-directives.d.ts',
          },
          ignoreMissingDependencies: true,
        }
      },
      ignorableDeepImportMatchers: [
        /tns-core-modules\//,
        /@nativescript\/core\//,
        /@nativescript\/angular\//
      ]
    },
    'nativescript-ui-listview': {
      entryPoints: {
        'angular': {
          override: {
            main: './listview-directives.js',
            typings: './listview-directives.d.ts',
          },
          ignoreMissingDependencies: true,
        }
      },
      ignorableDeepImportMatchers: [
        /tns-core-modules\//,
        /@nativescript\/core\//,
        /@nativescript\/angular\//
      ]
    }
  }
}

有人可以帮忙吗? Nativescript移动代码运行良好。

0 个答案:

没有答案