Skip to content

build jit with --prod #4904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
BubbleLeaf opened this issue Feb 22, 2017 · 5 comments
Closed

build jit with --prod #4904

BubbleLeaf opened this issue Feb 22, 2017 · 5 comments

Comments

@BubbleLeaf
Copy link

OS

Windows 7, 8 or 10

Versions.

@angular/cli: 1.0.0-beta.31
node: 6.9.5
os: win32 x64
@angular/common: 2.4.8
@angular/compiler: 2.4.8
@angular/core: 2.4.8
@angular/forms: 2.4.8
@angular/http: 2.4.8
@angular/platform-browser: 2.4.8
@angular/platform-browser-dynamic: 2.4.8
@angular/router: 3.4.8
@angular/flex-layout: 2.0.0-beta.5
@angular/cli: 1.0.0-beta.31
@angular/compiler-cli: 2.4.8

Message

I found --aot defaults to true in --prod at beta.28,so how can I build my web in --prod with JIT . I need compiler to do something in the runtime . there is no '--jit' flag I found to use.

@clydin
Copy link
Member

clydin commented Feb 22, 2017

try --no-aot. Allow boolean options can be negated using the --no- form.

@BubbleLeaf
Copy link
Author

it works , thanks for your help .

@sebelga
Copy link

sebelga commented Mar 14, 2017

Hi, I am reopening the issue because in my case it keeps complaining about lambda function.
I use:

ng build --no-aot --prod

And I receive this error:
ERROR in Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function

Thanks for the help!

@ghost
Copy link

ghost commented Jun 12, 2017

@sebelga I tried to run with --no-aot and it helps me at first run. When I run the same command again I got the error about encountered resolving symbol values statically. I've investigated the @angular/cli documentation carefully and couldn't find any references about --no flag. Just found this one e15433e#diff-38fa56d60acdab051b2b22316bdf16acR62

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants