问题
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