Skip to content

build jit with --prod #4904

Closed
Closed

Description

@BubbleLeaf

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.

Activity

  1. clydin commented on Feb 22, 2017

    @clydin
    Member

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

  2. BubbleLeaf commented on Feb 22, 2017

    @BubbleLeaf
    Author

    it works , thanks for your help .

  3. loixlab commented on Mar 14, 2017

    @loixlab

    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!

  4. angular-automatic-lock-bot commented on Sep 7, 2019

    @angular-automatic-lock-bot

    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.

  5. locked and limited conversation to collaborators on Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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