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

TypeScript needs compile or ignore error?

$
0
0

Hi Folks,

I am using Asp.net 5 (latest version) in vs 2015.

i am following through the tutorial as below:
https://angular.io/docs/ts/latest/quickstart.html

Here is my sample Code:

Index.html

<!DOCTYPE html><html><head><meta charset="utf-8" /><title>Angular 2</title><script src="lib/system.src.js"></script><script src="lib/angular2.dev.js"></script><script src="lib/es6-shim.js"></script><script src="lib/typescript.js"></script><script>
    System.config({
        transpiler: 'typescript',
        typescriptOptions: { emitDecoratorMetadata: true }
    });
    System.import('app/app.ts');</script></head><body><my-app>Loading....</my-app></body></html>

So i run it and display output goes well. But there is a little bit problem with typescript in App/app.ts as below image:

App/app.ts:

I put a cursor on over them and it says: "Cannot compile modules unless the '--module' flag is provided.". How to fix it if possible?I am waiting for your response.

Thanks


Viewing all articles
Browse latest Browse all 9386

Trending Articles



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