Open tidusjar opened 4 years ago
Same issues already mentioned here: https://github.com/NativeScript/nativescript-angular/issues/2174
Just read through that, the actual issue from that thread seems quite different to what I am experiencing
For nativescript-angular Error you can change to new npm package @nativescript/angular": "~9.0.0
Anyway you need to play with ngcc.congif.js until vendor packages will be exported the right way
packages: {
'@nativescript/angular': {
entryPoints: {
'.': {
override: {
main: './index.js',
typings: './index.d.ts',
},
ignoreMissingDependencies: true,
},
},
ignorableDeepImportMatchers: [/zone.js\//, /tns-core-modules\//, /@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: {
'.': {
override: {
main: './ui-sidedrawer.common.js',
typings: './index.d.ts',
},
ignoreMissingDependencies: true,
},
angular: {
override: {
main: './side-drawer-directives.js',
typings: './side-drawer-directives.d.ts',
},
ignoreMissingDependencies: true,
},
},
ignorableDeepImportMatchers: [
/tns-core-modules\//,
/@nativescript\/core\//,
/@nativescript\/angular\//,
],
},
'nativescript-material-bottomnavigationbar': {
entryPoints: {
angular: {
override: {
main: './index.js',
typings: './index.d.ts',
},
ignoreMissingDependencies: true,
},
},
ignorableDeepImportMatchers: [
/tns-core-modules\//,
/@nativescript\/core\//,
/@nativescript\/angular\//,
],
},
},
};
You can take a look at the first block refered to nativescript/angular, this reference should remove your error. References to nativescript-angular into your code must be changed.
For nativescript-material-textfield
the process follows the same pattern.
Greetings
@tidusjar Also be careful with mix-matched dependencies - I see in your posted package.json you have this in there "nativescript-angular": "^8.21.0",
alongside @nativescript/angular ~9.0.0
- You only need the ladder and should remove nativescript-angular
entirely.
Environment Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):Package.json
Describe the bug When running
tns run android --env.aot
I get a lot of errors complaining about the internal nativescript-angular modules, a subset of the errors are belowTo Reproduce Run
tns run android --env.aot
Sample project Currently a private repo, can provide if needed.
Additional context I have also run a
npm install
, removed and re-added the android application. This application also was working fine before following the Angular 9 upgrade instructions: https://github.com/NativeScript/nativescript-angular/wiki/Updating-and-developing-for-@nativescript-angular-v9-with-Ivy-or-without#problem-2