asp.net-web-api2 - platform.js:78 Uncaught TypeError:没有'new'就不能调用类构造函数平台
问题描述
我有一个用 Javascript ES2015 编写的课程。当我尝试执行 nodemon 命令时,我总是看到这个错误 TypeError: Class constructor Platform cannot be invoked without 'new'
下面在运行时错误中提到了完整的错误:[https://i.stack.imgur.com/2oB6W.png][1]
但我得到了编译时间成功 [https://i.stack.imgur.com/oaRkj.png][1]
解决方案
您的文件中有一个问题,app.module.ts
其中包含对platform
without new
ing 的引用。
推荐阅读
- qnamaker - QnA CORS 运行时问题
- javascript - 在 Firefox 上调用 unhandledrejection 处理程序,但在 Chrome 上没有?
- azure - 如何使用 ICSharpCode.SharpZipLib.Zip 压缩 blob
- .net-core - NamedPipeClientStream - 服务器断开连接时的通知
- r - 用于显示/隐藏行组的数据表按钮
- asp.net-web-api - InvalidOperationException:未指定 authenticationScheme,也未找到 DefaultChallengeScheme。(.net 核心 5)
- visual-studio-code - VSCode:悬停文档未显示完整的功能文档
- primefaces - 在哪里可以找到 Primefaces 3.4.1 捆绑包(开发包)?
- c++ - 从 MySQL 结果集中检索字符串列
- c# - 如何将firebase推送通知发送到ios应用程序