typescript - tsc 中可笑的错误跟踪。如何添加更多详细信息?
问题描述
我正在尝试使用tsconfig.json
提供的默认值编译一个反应项目,但create-react-app
我收到了这个我找不到源代码的荒谬错误。
$ tsc
error TS2488: Type 'never' must have a '[Symbol.iterator]()' method that returns an iterator.
当我尝试跑步时,npm run build
我得到:
Creating an optimized production build...
Failed to compile.
TypeScript error in undefined(undefined,undefined):
Type 'never' must have a '[Symbol.iterator]()' method that returns an iterator. TS2488
是的!这就是我得到的一切,没有别的。没有文件,什么都没有。有没有办法获得更详细的信息,或者找到编译器的完整日志?谢谢!
解决方案
推荐阅读
- flask-appbuilder - 主题示例中的 MyIndexView 错误在 Flask-AppBuilder 中不起作用
- c# - 使用 .Net Core 在 Raspberry Pi 上使用蓝牙 LE
- automated-tests - Nunit3 中的动态测试用例
- javascript - plotly.js 在轴上散布标记大小
- php - Laravel Maatwebsite excel大文件上传失败(导入文件上传失败。)
- html - 动态长度html和角度js
- reactjs - 反应 JSON 输入的意外结束 onSubmit
- java - 字符串解析并从文本字符串中获取数组索引
- scala - 由 BackoffSupervisor 监督的 Actor 在重启后丢失了隐藏的消息
- javascript - javascript 通过偏移量拖放