nstudio / xplat

Cross-platform (xplat) tools for Nx workspaces.
MIT License
367 stars 52 forks source link

feat(core): update to Nx and Angular 9 #179

Closed NathanWalker closed 4 years ago

NathanWalker commented 4 years ago
 TNSFontIconModule.forRoot returns a ModuleWithProviders type without a generic type argument. Please add a generic type argument to the ModuleWithProviders type.

closes https://github.com/nstudio/xplat/issues/178

NathanWalker commented 4 years ago

This is now released with xplat v9. Create a new workspace to try angular 9 and NativeScript with latest @nrwl/cli installed and @nstudio/xplat. A migration may be introduced in future for existing workspaces and I'll write an article or post a Wiki about various Ivy details soon.

For now if wanting to upgrade a workspace to Angular 9, use ng update @nrwl/workspace and then can ng update @nstudio/xplat. Then you could generate a new {N} app to see the changes needed to enable Ivy across package.json, tsconfig.json, tsconfig.tns.json and any routing modules (which use the new import syntax to lazy load routes). Also note that {N} package.json dependencies for now with Ivy can not use 'file:' ref's to js related packages since Ivy's ngcc compiler (which is temporary) does not work with linked directories: https://github.com/angular/angular/issues/33395 So the {N} app generator keeps the dependencies local to each app for Ivy compliance.