The problem is in your main.ts
file.
const platform = platformBrowserDynamic(); platform.bootstrapModule(App);
You are trying to bootstrap App
, which is not a real module. Delete these two lines and replace with the following line:
platformBrowserDynamic().bootstrapModule(AppModule);
and it will fix your error.
Related Posts:
- Angular File Upload
- node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ‘;’ expected error after installation of Angular 6
- TypeScript-‘s Angular Framework Error – “There is no directive with exportAs set to ngForm”
- I get “Http failure response for (unknown url): 0 Unknown Error” instead of actual error message in Angular
- Repository is not clean. Please commit or stash any changes before updating In Angular 8
- Repository is not clean. Please commit or stash any changes before updating In Angular 8
- Angular2 – Http POST request parameters
- Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input’
- Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input’
- Difference between Constructor and ngOnInit
- Can’t bind to ‘formGroup’ since it isn’t a known property of ‘form’
- What is the Record type in typescript?
- How can I define an array of objects?
- How to convert a string to number in TypeScript?
- How can I define an array of objects?
- How to convert a string to number in TypeScript?
- Could not find a declaration file for module ‘module-name’. ‘/path/to/module-name.js’ implicitly has an ‘any’ type
- Interfaces vs Types in TypeScript
- Failed to load resource: net::ERR_CONNECTION_REFUSED : Nodejs
- What is the question mark for in a Typescript parameter name
- Angular: mat-form-field must contain a MatFormFieldControl
- (change) vs (ngModelChange) in angular
- Unable to resolve dependency tree error when installing npm packages
- Typescript interface default values
- Angular ForEach in Angular4/Typescript?
- TypeScript: Cannot read property ‘push’ of undefined in [null]
- Angular4 – No value accessor for form control
- Understanding esModuleInterop in tsconfig file
- Why do i need `typings.json` file in an Angular 2 project?
- npm WARN … requires a peer of … but none is installed. You must install peer dependencies yourself
- document.getElementById replacement in angular4 / typescript?
- What is ViewChild in Angular2?
- TS1086: An accessor cannot be declared in ambient context
- error TS2339: Property ‘x’ does not exist on type ‘Y’
- TypeScript hashmap/dictionary interface
- How to use jQuery with TypeScript
- Angular2 Error: There is no directive with “exportAs” set to “ngForm”
- TypeScript sorting an array
- ‘router-outlet’ is not a known element
- Error when trying to inject a service into an angular component “EXCEPTION: Can’t resolve all parameters for component”, why?
- Typescript Date Type?
- No provider for HttpClient
- Constructor overload in TypeScript
- How to implement sleep function in TypeScript?
- How to update TypeScript to latest version with npm?
- Angular 2 Checkbox Two Way Data Binding
- Implement session storage in an Angular 8 application
- Is key-value pair available in Typescript?
- Can’t bind to ‘routerLink’ since it isn’t a known property
- How to use bootstrap 4 in angular 2?
- cannot redeclare block scoped variable (typescript)
- Angular 4 setTimeout() with variable delay and wait
- Why do i need `typings.json` file in an Angular 2 project?
- How do I initialize a TypeScript Object with a JSON-Object?
- ‘tsc command not found’ in compiling typescript
- What return type should be used for setTimeout in TypeScript?
- How do I download a file with Angular2 or greater
- TS cannot find modules
- What are differences between SystemJS and Webpack?
- Angular 2 Sort table columns
- Module has no exported member error in angular module
- How do I install Angular 2 using NPM?
- How to apply filters to *ngFor?
- Select default option value from typescript angular 6
- Cast object to interface in TypeScript
- angular-cli where is webpack.config.js file – new angular6 does not support ng eject
- When to use ‘npm start’ and when to use ‘ng serve’?
- I am getting an “Invalid Host header” message when connecting to webpack-dev-server remotely
- What is pipe for in RxJS?
- What is .subscribe in Angular?
- ERR_INVALID_HTTP_RESPONSE using Angular 7 and ASP.Net Core 2.2 in Google Chrome browser
- mat-form-field must contain a MatFormFieldControl
- ERROR Error: No value accessor for form control with unspecified name attribute on switch
- Angular: Error no directive with “exportAs” set to “ngForm”
- What does this “react-scripts eject” command do?
- Possible to extend types in Typescript?
- No overload matches this call. Type ‘string’ is not assignable to type ‘Signals’
- Angular 2 Cannot find control with unspecified name attribute on formArrays
- How do you format a Date/Time in TypeScript?
- Error: Cannot find module ‘webpack’
- Typescript ReferenceError: exports is not defined
- ng serve does not work
- What is the equivalent of ngShow and ngHide in Angular 2+?
- Uncaught ReferenceError: define is not defined typescript
- Angular 5 to 6 Upgrade: Property ‘map’ does not exist on type Observable
- Angular 2 – Using ‘this’ inside setTimeout
- Block-scoped declarations not yet supported outside strict mode
- Set focus on element
- Angular2 CLI error “@angular/compiler-cli” package was not properly installed
- TypeError: Class extends value undefined is not a function or null
- Error : Cannot find primary outlet to load
- Templating with href in angular (4)
- is there any alternative for ng-disabled in angular2?
- SyntaxError: Unexpected token C in JSON at position 0 – Ionic 2 Http GET request
- Angular 2.0 and Modal Dialog
- ‘import’ and ‘export’ may only appear at the top level
- How to use if-else condition with [ngClass] in angular 7?
- Brackets.io in built support for TypeScript
- How to use forEach loop correctly in angular 2?
- Check if Variable is Empty – Angular 2