打字稿加载器不适用于OpenAPI生成的类

发布于 2025-02-07 06:12:22 字数 409 浏览 2 评论 0原文

我已经与OpenAPI生成了一个打字稿端客户端,并且在将其导入应用程序并尝试运行它之后,我收到了这些错误:

Module parse failed: Unexpected token (32:7)
File was processed with these loaders:
 * ./node_modules/source-map-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders.
|  * @interface Division
|  */
> export interface Division {
|     /**
|      * 

我似乎找不到解决方案。什么可能导致它,我可以修复它吗?

I have generated a typescript-fetch client with OpenAPI and after I imported it in my application and tried to run it, I receive these erros:

Module parse failed: Unexpected token (32:7)
File was processed with these loaders:
 * ./node_modules/source-map-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders.
|  * @interface Division
|  */
> export interface Division {
|     /**
|      * 

I can't seem to find a solution to this. What could be causing it and could I fix it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文