简体   繁体   中英

Javascript not generated from Typescript

I am creating an Aurelia application using Visual Studio 2015 and Typescript. I am using ASP.Net Core 1.0 R2.

Before yesterday when I compiled my application the .js files were generated and showed up just after the .ts files (see image).

在此输入图像描述

I did something yesterday where they stopped being generated and I have no idea what I did. I am learning Typescript so not familiar enough with this to begin to know where to look. The only results I got searching the internet told me that the .js files were created in an appBundle.js file but I think this is old information because that was not the behavior I was seeing before yesterday, and my Aurelia app is not running because it says it cannot find the .js files.

Can anyone shed some light on what I need to do to get the .js files to be generated again?

UPDATE:

I deleted the app.html and app.ts files and recreated them and then rebuilt the project and suddenly the .js files are showing up and my app runs fine now.

在此输入图像描述

Not sure why this fixed the problem, might be bug.

Anybody have any insight?

I guess the typescript controller is not compiling your .ts files anymore because you have an error in your app.ts file.

This behaviour depends on your settings to the typescript compiler (tsconfig file)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM