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

前端 未结 30 1594
予麋鹿
予麋鹿 2020-11-22 12:44

I\'ve got the following error when launching my Angular app, even if the component is not displayed.

I have to comment out the so that my

30条回答
  •  佛祖请我去吃肉
    2020-11-22 13:09

    I upgraded from RC1 to RC5 and received this error.

    I completed my migration (introducing a new app.module.ts file, changing package.json to include new versions and missing modules, and finally changing my main.ts to boot accordingly, based on the Angular2 quick start example).

    I did an npm update and then an npm outdated to confirm the versions installed were correct, still no luck.

    I ended up completely wiping the node_modules folder and reinstalling with npm install - Voila! Problem solved.

提交回复
热议问题