Open agonper opened 2 years ago
Thanks @agonper there's one other adjustment the tools need with latest updates to ensure the angular app's tsconfig is correct, it should instead annotate along with each added package like this for example:
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"paths": {
"~/*": ["src/*"],
"@demo/shared": ["tools/demo/index.ts"],
"@nativescript/*": ["packages/*"]
}
},
"files": ["./references.d.ts", "./src/main.ts", "./src/polyfills.ts"],
"include": ["../../packages/**/references.d.ts", "../../**/*.android.ts", "../../**/*.ios.ts"]
}
That would allow natural livesync changes with Angular demo. I'll add this adjustment in the tools this week.
You're welcome @NathanWalker. I'm happy to help 🙂 .
That would allow natural livesync changes with Angular demo.
I noticed that too. Now with Ivy it should no longer be necessary to pre-build Angular plugins for live sync, right? That would be an enormous DX boost!
Looking forward seeing that adjustment! Thanks for making NativeScript better every day 😄
Correct! Yes that should allow the angular demo to work/livesync like the vanilla demo. Thanks for the kind words 🤗
Any progress on this issue? I have tried implementing the tsconfig changes but there are still errors resolving modules.
Error description
Angular demo build cannot find files under
@demo/shared
scopeSteps to reproduce