Skip to content

Can't bind to 'ngModel' since it isn't a known property of 'input' when configuring the forms module #48519

@LoganDupont

Description

@LoganDupont

Which @angular/* package(s) are the source of the bug?

forms

Is this a regression?

No

Description

When configuring the forms module by using withConfig() we receive an error on the 'ngModel' Can't bind to 'ngModel' since it isn't a known property of 'input'. If we remove withConfig() in the module file everything is fine.

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/angular-ivy-u7xib1?file=src/app/app.module.ts

Please provide the exception or error you saw

Can't bind to 'ngModel' since it isn't a known property of 'input'.

Please provide the environment you discovered this bug in (run ng version)

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: formsstate: has PR

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions