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

I developed my ionic capacitor app using OS Windows. It works in browser mode (ionic serve) and I can build on Android platform.

Now I cloned the project on my macbook but I can’t build the project.

I receve errors when I run ionic serve or capacitor build command

There are several errors similar to:

[ng] Build at: 2024-03-21T21:39:28.633Z - Hash: 50162a767f5f642b - Time: 21280ms
[ng] ✖ Failed to compile.
[ng] Error: src/app/signin/signin.page.html:30:52 - error NG8002: Can't bind to 'ngModel' since it isn't a known property of 'ion-input'.
[ng] 1. If 'ion-input' is an Angular component and it has 'ngModel' input, then verify that it is part of this module.
[ng] 2. If 'ion-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
[ng] 3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

Very strange. Can you help me to solve?

Related line is:

<ion-input type="{{type}}" [(ngModel)]="password" no-lines placeholder="**********"></ion-input>

Probably Angular and Node versions used on windows are different on Mac. On Mac I must update because it was required

:frowning:

in your @Component add → imports: [… FormsModule, …]