You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, if you do that, aot will be broken, so you also need the ngc compiler and change the whole way the plugin is built. Some use tsc && npm run build.native && ngc some use just ngc.
Using the aot compiler also means you can't do
export * from "./<your-plugin-name>.module";
in index.ts, it has to be export { <module-here> } from "./<your-plugin-name>.module"
This seed is also using "typescript": "~3.3.3", which is not compatible with ngc current stable (7.2.12 at the time of writing)
Adding Angular support appears to be "easy", but is actually a way bigger hassle that isn't documented anywhere, and it's the kind of thing that is "hard to do it right".
The text was updated successfully, but these errors were encountered:
Currently https://docs.nativescript.org/plugins/angular-plugin tells you just to create an
angular
directory and be done with it.Unfortunately, if you do that,
aot
will be broken, so you also need thengc
compiler and change the whole way the plugin is built. Some usetsc && npm run build.native && ngc
some use justngc
.Using the aot compiler also means you can't do
in
index.ts
, it has to beexport { <module-here> } from "./<your-plugin-name>.module"
This seed is also using
"typescript": "~3.3.3"
, which is not compatible withngc
current stable (7.2.12
at the time of writing)Adding Angular support appears to be "easy", but is actually a way bigger hassle that isn't documented anywhere, and it's the kind of thing that is "hard to do it right".
The text was updated successfully, but these errors were encountered: