Giter VIP home page Giter VIP logo

Comments (5)

zqfan avatar zqfan commented on August 16, 2024 1

建议到官网控制台提工单给云函数产品咨询下,在SDK这里提问可能无法解决问题。

from tencentcloud-sdk-nodejs.

AntoninSorrento avatar AntoninSorrento commented on August 16, 2024

经过多次测试发现,在云函数下,不能通过layer层调用该sdk 否则会报错

from tencentcloud-sdk-nodejs.

ycp424c avatar ycp424c commented on August 16, 2024

云函数中有这个sdk的内置版本,优先级比layer高,如果放到layer里面要用绝对路径引用,否则会引用到内置的较低版本

from tencentcloud-sdk-nodejs.

AntoninSorrento avatar AntoninSorrento commented on August 16, 2024

请问如何强制引用,有相关文档吗?多谢解答
多说一句
不是应该让 layer 级别比内置级别高才合理吗,我都用 layer 了,还在乎函数内置版本嘛?
而且本地环境运行的版本可能会和内置的不一样,那么就会出现我这种,本地跑没问题,一上线就GG
仅个人观点。

from tencentcloud-sdk-nodejs.

timtiger avatar timtiger commented on August 16, 2024

https://main.qcloudimg.com/raw/document/product/pdf/583_19677_cn.pdf
文档里面有说明:
如果在层中使用 SDK,请在代码中指定绝对路径,即 /opt/node_modules/tencentcloud-sdk-nodejs 。

其实按需安装包会更好,既避免了这个问题,也能减少体积
npm install tencentcloud-sdk-nodejs-ses

from tencentcloud-sdk-nodejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.