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

uniapp项目引入tencentcloud-sdk-nodejs报错:TypeError: promisify is not a function #135

Open
davidsofter opened this issue Feb 15, 2023 · 6 comments

Comments

@davidsofter
Copy link

npm install tencentcloud-sdk-nodejs --save
然后在vue文件中引用
import * as tencentcloud from "tencentcloud-sdk-nodejs"
显示报错
图片

@songjiagui
Copy link

同样的问题,你这边解决了吗?

@qgq99
Copy link

qgq99 commented Apr 4, 2023

解决了吗

@songjiagui
Copy link

这个是在node.js上运行的,并不是在前端上直接使用的。

@qgq99
Copy link

qgq99 commented Apr 4, 2023

这个是在node.js上运行的,并不是在前端上直接使用的。

感谢回复!我是在react项目中引入时报这个错,这样不行得话应该怎样引入呢

@songjiagui
Copy link

image
image
image
image
这个并不是在前端的页面进行引入,而是做成node.js后端接口挂载在4001端口上,然后通过跨域的形式通过前端用axios进行请求后端的接口的形式进行调用。

@qgq99
Copy link

qgq99 commented Apr 5, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants