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
console.error('keystore expects a standard Web browser or Node environment.',error);
}
}
Actual Behavior
Crashes with error message:
keystore expects a standard Web browser or Node environment. Error: Dynamic require of "crypto" is not supported
at file:///test-fuels/bg/node_modules/.pnpm/@[email protected]/node_modules/@fuel-ts/keystore/dist/index.mjs:1:231
at file:///test-fuels/node_modules/.pnpm/@[email protected]/node_modules/@fuel-ts/keystore/src/universal-crypto.ts:25:22
The text was updated successfully, but these errors were encountered:
What version of fuels-ts are you using?
latest/ 0.39.0
Steps to Reproduce
keystore
require
is not availableExpected Behavior
This code should also work in esm style environments.
This block needs to support
require
for legacy support but also somehow do dynamicimport
for ESM:fuels-ts/packages/keystore/src/universal-crypto.ts
Lines 22 to 31 in 6c8ce48
Actual Behavior
Crashes with error message:
The text was updated successfully, but these errors were encountered: