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
- npm i your nativescript-angular tgz (NOTE: tgz is in the `dist` folder)
3
+
- cd `nativescript-angular` and run `npm run pack`
4
+
- cd yourProj and install the tgz : `npm i <your nativescript-angular tgz>` (NOTE: tgz is in the `dist` folder)
7
5
- install `next` versions of all Angular deps
8
6
- edit `node_modules/@angular/compiler-cli/src/ngcc/src/packages/dependency_resolver.js` in order to comment out the following code:
7
+
```
9
8
// This entry point has dependencies that are missing
10
9
// so remove it from the graph.
11
10
// removeNodes(entryPoint, Array.from(missing)); <--- this line
12
-
11
+
```
13
12
- enable Ivy in the tsconfig with:
13
+
```
14
14
"angularCompilerOptions": {
15
15
"enableIvy": true,
16
16
"allowEmptyCodegenFiles": true,
17
17
},
18
-
- run ./node_modules/.bin/ivy-ngcc
18
+
```
19
+
- run `./node_modules/.bin/ivy-ngcc`
19
20
20
21
- configure webpack to read `fesm2015` entry-points whem loading package.json:
21
22
```
@@ -29,8 +30,15 @@ resolve: {
29
30
- edit `fesm2015/nativescript-angular.js` in order to remove the duplicate `_0_Template`
30
31
- edit `fesm2015/nativescript-angular.js` in order to move `import 'tns-core-modules/globals'` on the first line (before `import * as ɵngcc0 from '@angular/core';`)
31
32
32
-
- fix the nativescript-angular imports in your app and the AOT transformer:
33
+
- fix the `nativescript-angular` imports in your app and the AOT transformer:
33
34
- edit `/Users/tachev/Work/Test/ngIvy/node_modules/nativescript-dev-webpack/transformers/ns-replace-bootstrap.js` and set ...transformers_1.insertStarImport(sourceFile, idPlatformNativeScript, 'nativescript-angular', firstNode, true),
34
35
- edit your main.ts, app.module.ts and everywhere else in your app in order to import from `nativescript-angular'` instead of the deep imports
35
36
36
-
- tns run android/ios --bundle --env.aot
37
+
-`tns run android/ios --bundle --env.aot`
38
+
39
+
40
+
## Known Issues:
41
+
42
+
- Currently the ./bin scripts are not packed in the npm package
43
+
- Zone.js distribution is modified to be TS compilable
44
+
- There are no secondary (ex. `nativescript-angular/router`) entry points for `nativescript-angular`, which is a breaking change
0 commit comments