nativescripts/schematics, baseurl and paths
- Langage dominant
- TypeScript
- Étoiles
- 25.7k
- Forks
- 7.9k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
**I'm submitting a ...** (check one with "x")
* [X] bug report
* [ ] feature request
* [ ] question about the decisions made in the repository
**Current behavior:**
I am trying to implement nativescript/schematics. and i am experiencing some problems with the paths and baseurls. Normally when creating a new angular 8 project and installing nativescript/schematics, that works out of the box.
But when i use ngx admin master and install nativescript/schematics, It does not compile anymore.
The problem is related to tnsconfig.app.json in src with a baseUrl of "./". And somehow when you use paths you can not refer to a folder in the parent dir. e.g. @src mapping to ../src does not work.
nativescript/schematics also adds a paths in tsconfig.json one directory higher. And when u use paths a baseurl should be provided.
I believe, and read somewhere (though i can not find te link anymore) that it is impossible to have the baseurl in tsconfig.app.json in a subdirectory and add a path to a directory one level up/parent.
**Expected behavior:**
baseurl should be migrated from tsconfig.app.json to tsconfig.json
**Steps to reproduce:**
fresh install ngx admin master.
ng add @nativescript/schematics.
ng serve.
**Angular 8**
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.