Skip to content

ERROR in Illegal State: literal maps should have been converted into functions #14782

@StephenFluin

Description

@StephenFluin

I'm submitting a bug report

When a template includes an assignment such as <button (click)="title = {}"></button>, AOT Compilation Fails.

Current behavior
AOT Compilation fails with the error:
ERROR in Illegal State: literal maps should have been converted into functions

Expected behavior
AOT Compilation Succeeds without error

Minimal reproduction of the problem with instructions
See reproduction here:
https://github.com/StephenFluin/literal-error-repro

Clone the project, npm install, ng build -prod

  • Angular version: 4.0.0-rc.1
    I also tested with the latest master.

  • Node (for AoT issues): node --version = v7.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues related to the framework runtimeregressionIndicates than the issue relates to something that worked in a previous versiontype: bug/fix

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions