NativeScript / NativeScript/nativescript-cli
The Angular AOT flag should not be supported in Preview
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 204
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 8
Description
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 5.1.0
To Reproduce
- tns create ngApp --ng
- tns preview --bundle --env.aot
- a runtime exception will be thrown
Expected behavior
The AOT flag should not be valid for the preview command.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the CLI entry point for tns preview, reproducing with tns create ngApp --ng followed by tns preview --bundle --env.aot. Trace how the preview command handles the AOT flag and make the command reject it instead of reaching a runtime exception; confirm the documented expected behavior with a regression test if the relevant test entry point is found.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, javascript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100