-
Notifications
You must be signed in to change notification settings - Fork 287
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
bun:test
ReferenceError
#576
Comments
Did you add cjs config like here? |
I meet the same issue too @Satan-web3 22 | return this;
23 | }.call(null) ||
24 | Function('return this')();
25 |
26 | var core_contract_common_pb = require('../../core/contract/common_pb.cjs');
27 | goog.object.extend(proto, core_contract_common_pb);
^
ReferenceError: Can't find variable: proto
at /home/runner/work/project/node_modules/tronweb/lib/esm/protocol/core/contract/balance_contract_pb.cjs:27:20
Bun v1.1.26 (Linux x64 baseline) |
Can you give a example reproducing this error? |
Hi, my errors appeared in GitHub actions with a 10% chance. test.ts
|
As I've tested, bun didn't load cjs file in the correct order when using esm as entry. So I recommend you to use commonjs style or drop the use of bun. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Getting this when running tests
The text was updated successfully, but these errors were encountered: