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
{{ message }}
This repository was archived by the owner on May 1, 2020. It is now read-only.
TypeScript version 2+ adds support for path mapping. This feature allows as to create aliases for files/folders (more info).
Currently this feature is broken for ionic-app-scripts build because folder structure is different in .tmp folder than in source folder (basically src is copied to .tmp).
ngc step fails because it can't correctly resolve imports using path mapping
What behavior are you expecting?
In tsconfig.json copied to .tmp, compilerOptions.baseUrl is set to '.' so that path mappings work correctly.
Steps to reproduce:
1.
2.
3.
insert any relevant code between the above and below backticks
Which @ionic/app-scripts version are you using?
v0.0.30
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
One possible solution is to:
Add possibility of changing compilerOptions.baseUrl via own config file for ngc.
Change conf/ngc.conf.js with compilerOptions.baseUrl set to '.'
Change template of projects generated via ionic-cli to have tsconfig.json generated as such:
{
"compilerOptions": {
...
"baseUrl": "./src"
This change will reflect folder structure of generated .tmp by ngc step of ionic-scripts's build and will help future projects.