Angular 2 : No NgModule metadata found

后端 未结 28 1557
盖世英雄少女心
盖世英雄少女心 2020-11-30 05:31

I\'m brand new to Angular 2 and attempting to follow along with a video tutorial I found. Despite following all of the steps, Angular just won\'t work; I get the following e

28条回答
  •  忘掉有多难
    2020-11-30 05:58

    In my case, I was trying to upgrade my angular 6 project using ng update after that the entire universe collapse.

    I was trying to update my project using this commands:

    • ng update @angular/cli
    • ng update @angular/core
    • ng update @angular/material

    And then I found a problem with rxjs package and I run also this command. - npm install --save rxjs

    And then I get the error

    No NgModule metadata found

    I solve this by deleting my node_modules folder in the project root and then I run:

    • npm install

    That's is, all works nice.

提交回复
热议问题