Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Error TS1148 Cannot use imports, exports, or module augmentations when '--module' is 'none'. TypeScript Virtual Projects

$
0
0

Hello,

I am having trouble getting anything working with Angular 2 and ASP.NET Core. I paste below a few lines from Package.Json

The problem that I have is with my app.component.ts

ErrorTS1148Cannot use imports, exports, or module augmentations when '--module' is 'none'.TypeScript Virtual Projects

then it goes on to fail to find

import { NgModule } from '@angular/core';

app.module.ts just fails to find angular/core

"dependencies": {
"@angular/animations": "4.0.0",
"@angular/common": "4.0.0",
"@angular/compiler": "4.0.0",
"@angular/compiler-cli": "4.0.0",
"@angular/core": "4.0.0",
"@angular/forms": "4.0.0",


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>