Last active
August 16, 2018 23:51
-
-
Save JohnnieLi/afcb6edc2f9e7322cdf209172c44f8a6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ================= Angular 6 VS Less | |
| 1. https://github.com/NG-ZORRO/ng-zorro-antd/issues/1363 | |
| 2. https://github.com/angular/angular-cli/issues/10430 | |
| ===========global is not defined=========== | |
| 1.https://github.com/aws-amplify/amplify-js/issues/678 | |
| add this to index.html | |
| <!-- https://github.com/aws/aws-amplify/issues/678 fix: --> | |
| <script> | |
| if (global === undefined) { | |
| var global = window; | |
| } | |
| </script> | |
| <!-- https://github.com/aws/aws-amplify/issues/678 fix end--> | |
| ===========lazy-loading path=========== | |
| 1 .https://github.com/angular/angular-cli/issues/10673 | |
| ``` | |
| Efectively, there are three posible solutions: | |
| a) Using relative path loadChildren: './... | |
| b) Using absolute path starting with loadChildren: 'src/app/... | |
| c) tsconfig.app.json --> BaseUrl: "./" | |
| The issue | |
| Actually, the problem comes from typescript config. | |
| Before NG 6, the scaffold generated by CLI set the BaseUrl in tsconfig.app.json which is located inside /src. Currently, it is set by tsconfig.json located outside /src, but continues pointing to ./. Because of this, loadChildren path to module should be relative or include src folder. | |
| Angular CLI: 6.0.3 | |
| Node: 8.11.1 | |
| OS: darwin x64 | |
| Angular: 6.0.2 | |
| ``` | |
| =========router scroller========== | |
| https://github.com/angular/angular/issues/25145 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment