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.

--appEntryPoint does not work in production #603

Closed
@jcviau

Description

@jcviau

Short description of the problem:

When using ionic-app-scripts build --prod --appEntryPoint ./src/path_to_file.ts, an error occur when building in production (--prod).

What behavior are you expecting?

calling --appEntryPoint in production should work.

Steps to reproduce:

  1. call ionic-app-scripts build --prod --appEntryPoint ./src/path_to_file.ts
  2. error occur

Which @ionic/app-scripts version are you using?
0.48

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
Here's the error I got:
Error: Could not find entry point (bootstrap file) ./src/path_to_file.ts
at [...]\node_modules@ionic\app-scripts\dist\aot\aot-compiler.js:82:41

Also, if I try to use {SRC} environment variable in the path (instead of specifying ./src), I get an error. It occur because it look for a file with '{SRC}' in his path instead of the value of this environment variable. Here's the error: "main.dev.ts" and "main.prod.ts" have been deprecated. Please create a new file "main.ts" containing...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions