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

**URL:** <https://forum.ionicframework.com/t/cant-bind-to-ngmodel-since-it-isnt-a-known-property-of-ion-input/240447>\
**Category:** Ionic Framework\
**Created:** [March 21, 2024, 9:45pm UTC](https://forum.ionicframework.com/t/cant-bind-to-ngmodel-since-it-isnt-a-known-property-of-ion-input/240447 "2024-03-21T21:45:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lsantaniello](https://avatars.discourse-cdn.com/v4/letter/l/e495f1/32.png) [@lsantaniello](https://forum.ionicframework.com/u/lsantaniello)\
**Post date:** [March 21, 2024, 9:45pm UTC](https://forum.ionicframework.com/t/cant-bind-to-ngmodel-since-it-isnt-a-known-property-of-ion-input/240447/1 "2024-03-21T21:45:28Z")

</div>

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:

```auto
[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:

```auto
<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

☹

---

<div class="post-metadata">

**Author:** ![AlexDonn190](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@AlexDonn190](https://forum.ionicframework.com/u/AlexDonn190)\
**Post date:** [March 23, 2024, 7:24pm UTC](https://forum.ionicframework.com/t/cant-bind-to-ngmodel-since-it-isnt-a-known-property-of-ion-input/240447/2 "2024-03-23T19:24:04Z")

</div>

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