ERROR in The target entry-point “@nativescript/angular” has missing dependencies on running a Nativescript Angular 9 project

感情迁移 提交于 2021-01-29 16:42:42

问题


I am receiving an error for a working Nativescript Angular 9 project which we started 2 weeks back . The error is like this :

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

We are working on a sharing code base which we were able to run both web code and native code simultaneously without any issues till last day. Today when i tried running the project for web application, i am getting this error. On googling , got suggestions to update my ngcc.config.js file. I did that as per other suggestions(https://github.com/NativeScript/nativescript-angular/issues/2171 , https://github.com/NativeScript/nativescript-angular/issues/2151 ) . But i was having the proper structure in my ngcc.config.js file :

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\//
      ]
    }
  }
}

Can anyone please help ? Nativescript mobile code is running fine .

来源:https://stackoverflow.com/questions/62503501/error-in-the-target-entry-point-nativescript-angular-has-missing-dependencies

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!