sdk报错
178 浏览2025年06月19日作者:fw568

test-sdk.js:

const DySdk = require('@open-dy/open_api_sdk');

console.log('SDK 加载完成:', DySdk);


运行报错:

PS D:\gitee\lzj-admin\uniCloud-aliyun\cloudfunctions\xcx> node test-sdk.js

node:internal/modules/cjs/loader:1512

const result = compileFunctionForCJSLoader(content, filename, false /* is_sea_main */, shouldDetectModule);

^

RangeError: Maximum call stack size exceeded

at wrapSafe (node:internal/modules/cjs/loader:1512:18)

at Module._compile (node:internal/modules/cjs/loader:1534:20)

at Object..js (node:internal/modules/cjs/loader:1699:10)

at Module.load (node:internal/modules/cjs/loader:1313:32)

at Function._load (node:internal/modules/cjs/loader:1123:12)

at TracingChannel.traceSync (node:diagnostics_channel:322:14)

at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)

at Module.require (node:internal/modules/cjs/loader:1335:12)

at require (node:internal/modules/helpers:136:16)

at Object.<anonymous> (D:\gitee\lzj-admin\uniCloud-aliyun\cloudfunctions\xcx\test-sdk.js:2:15)

Node.js v22.13.1

最后一次编辑于 2025 年 06 月 19 日
共 4 条评论

相关问答

专题推荐

热门文章

热门问答