Skip to content
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
@peterbakonyi05

Description

@peterbakonyi05

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:

  1. ionic start exampleApp --v2
  2. change the same thing I changed in this commit. Just move main.ts to web/main.ts (and update the relative AppModule import and the related config entry in package.json)
  3. npm run build --prod
  4. 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions