-
Notifications
You must be signed in to change notification settings - Fork 39
将vue-web-terminal导入vue中出现typescript错误 #72
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
Comments
3.2.2版本经过ts项目测试验证过,刚刚在sandbox起了一个干净的 TS 项目是没问题的:https://codesandbox.io/p/devbox/vue-web-terminal-ts-vlpdcz 这些点你再确认一下看看?
|
感谢解答。确实对vue文件做了特殊处理( |
不太对,我检查了一下d.ts的声明,只有一个默认的声明
除了这个声明以外没有别的涉及了对*.vue的处理 |
我重新使用vuecli创建了一个新的项目,这个项目里只有scssloader和typescript,但是在我use了Terminal之后仍然会爆一样的问题
|
刚刚新建了一个vue-cli构建的ts项目确实有这个问题,我猜测是因为 暂时的解决办法:添加 // @ts-ignore
createApp(App).use(Terminal).mount("#app"); 最后感谢你提供这个信息 👍 |
感谢解答( |
Yes, this problem is not addressed, solving it requires generating a You can temporarily use @ts-ignore to mask errors. |
此问题已在3.4.0版本更新解决 |
版本: 3.2.2
使用了typescript
main.ts
The text was updated successfully, but these errors were encountered: