Can't bind to 'ngForOf' since it isn't a known property of 'th'
// resolved by importing CommonModule not on the app.module.ts but
// on the componentName.module.ts
import { CommonModule } from '@angular/common';
imports: [CommonModule]
Can't bind to 'ngForOf' since it isn't a known property of 'th'
// resolved by importing CommonModule not on the app.module.ts but
// on the componentName.module.ts
import { CommonModule } from '@angular/common';
imports: [CommonModule]
Can't bind to 'ngForOf' since it isn't a known property of 'div'.
// older Angular versions
// import {BrowserModule, CommonModule} from '@angular/common';
import { BrowserModule } from '@angular/platform-browser'
..
..
@NgModule({
imports: [BrowserModule, /* or CommonModule */],
..
})
NG0303: Can't bind to 'ngForOf' since it isn't a known property of 'div'.
1 : check if you imported BrowserModule in the module
2 : check if the component that has the error is declared in the module
Can't bind to 'ngModel' since it isn't a known property of 'input'.ng
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\rollup\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\watchpack-chokidar2\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\webpack-dev-server\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN @angular-devkit/[email protected] requires a peer of @angular/localize@^10.0.0 but none was installed.
npm WARN @angular-devkit/[email protected] requires a peer of ng-packagr@^10.0.0 but none was installed.
npm WARN [email protected] requires a peer of bufferutil@^4.0.1 but none was installed.
npm WARN [email protected] requires a peer of utf-8-validate@^5.0.2 but none was installed.
npm WARN [email protected] requires a peer of node-sass@^4.0.0 but none was installed.
npm WARN [email protected] requires a peer of fibers@>= 3.1.0 but none was installed.
npm WARN [email protected] requires a peer of html-webpack-plugin@^2.21.0 || ~3 || >=4.0.0-alpha.2 <5 but none was installed.
npm WARN [email protected] requires a peer of [email protected] - 3 but none was installed.
npm WARN [email protected] requires a peer of popper.js@^1.16.1 but none was installed.
PS C:\Angular_workspaces\student\student-frontend-app> npm install --save-dev "rollup@>=0.66.0 <2"
[email protected] C:\Angular_workspaces\student\student-frontend-app
+-- @angular-devkit/[email protected]
this fix the above issues
npm install npm -g
npm install --save-dev @angular/cli@latest
npm install
npm start
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us