You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error message here is not very important. As we have raised in other issues, there still seems to be a way of writing modules that require does not work on LLRT.
consta=require('@aws-sdk/client-rds-data')
% llrt ./src/index.js
TypeError: cannot read property 'HTTP' of undefined
at <anonymous> (/Users/shinya/Workspaces/hono-test/node_modules/@smithy/util-endpoints/dist-cjs/index.js:200:36)
at <anonymous> (/Users/shinya/Workspaces/hono-test/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js:62:29)
at <anonymous> (/Users/shinya/Workspaces/hono-test/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js:41:29)
at <anonymous> (/Users/shinya/Workspaces/hono-test/node_modules/@aws-sdk/client-rds-data/dist-cjs/index.js:63:36)
at <anonymous> (/Users/shinya/Workspaces/hono-test/src/index.js:6:11)
at <anonymous> (eval_script:1:5)
By the way, if you load @smithy/util-endpoints, you can see the difference in behavior from Node.js as follows.
The error message here is not very important. As we have raised in other issues, there still seems to be a way of writing modules that require does not work on LLRT.
By the way, if you load @smithy/util-endpoints, you can see the difference in behavior from Node.js as follows.
@smithy/util-endpoint (with llrt-dawrin-arm64-no-sdk):
What is even stranger is that when I run the reproduced program with the part that was in error extracted, it works.
The text was updated successfully, but these errors were encountered: