你好,
能问下你建的是哪个版本的netcore angular项目吗?
我这边测试使用VS2017和.NET CORE2.1,建了一个新项目,运行并没有报错。
运行时截图:

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.