简体   繁体   中英

“A computed property name in an interface must directly refer to a built-in symbol”

I am receiving this error when building a C# web api backend and angular 6 frontend in one Visual Studio solution. I am using VS 2015 for this. These errors are coming from the node modules in @angular\\core\\src\\interfaces and @angular\\core\\src\\sanitization

When using just the front end or just the back end, they both individually run fine. But the back end will not build if the front end is included in the VS project.

I don't know why you get the error in some cases but not others, but I can tell you that error will go away if you upgrade to TypeScript 2.7 or newer. Go to the downloads page and install the latest download for Visual Studio 2015.

从Visual Studio下载最新的打字稿版本, https://www.microsoft.com/zh-cn/download/confirmation.aspx? id = 55258

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