Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在TSRPC中使用export default interface导出接口后,npm run doc会报错 #36

Open
NicodemusDu opened this issue Oct 16, 2022 · 0 comments
Labels

Comments

@NicodemusDu
Copy link

错误信息

ERROR ⨯ Debug Failure. False expression: Node must have a real position for this operation

问题原因

在目录src/tsrpc/types/文件下定义的接口文件(tsrpc协议中会用到), 如果使用export default interface导出这个接口, build和dev命令都是可以正常运行的,但是doc命令会报这个错误.

解决办法

去掉default,使用export interface导出接口,这个问题可以解决.

@k8w k8w added the bug label Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants