I'm encountering an issue while building my application in Visual Studio 2017. The project is using ASP.NET CORE 2 and Angular 6. Once I run the application, errors are popping up in the file output_ast.d.ts within the node_modules directory:
(TS) In 'const' enum declarations member initializer must be constant expression.
and
Build:In 'const' enum declarations member initializer must be constant expression.
The code causing the error:
export declare const enum JSDocTagName {
Desc = "desc",
Id = "id",
Meaning = "meaning",
}
Here's a snippet from my package.json:
"name": "client-app",
"version": "0.0.0",
... (package.json content)
The structure of my application is similar to the one explained in this article https://www.codeproject.com/Articles/1245243/How-to-Create-an-App-with-Angular-and-ASP-NET-C, however, the Angular app is located in a separate folder called ClientApp. I've tried varying versions of TypeScript and Angular CLI without success. Any suggestions on how to resolve this error?