This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.
AOT build fails when main.ts file is in a subfolder #839
Open
Description
Short description of the problem:
In case you create a subfolder in src/app
and put the main.ts
file there, AOT will fail. Normal build (without AOT) works fine.
What behavior are you expecting?
AOT build works as before.
Steps to reproduce:
ionic start exampleApp --v2
- change the same thing I changed in this commit. Just move
main.ts
toweb/main.ts
(and update the relativeAppModule
import and the related config entry inpackage.json
) npm run build --prod
- open
www/index.html
Which @ionic/app-scripts version are you using?
1.1.4 (latest)
Other information:
Error: Uncaught TypeError: Cannot read property 'create' of undefined
Created a repository where the issue is happens after doing the changes I listed in steps to reproduce section. https://github.com/peterbakonyi05/ionic-app-scripts-aot-issue