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
Otherwise, I get an error trying to load this package using esm and it doesn't play well. Note the fix just uses ES6 syntax just like /rlp import. If you agree I can create a PR.
Here is the diff that solved my problem:
diff --git a/node_modules/@onflow/fcl/dist/fcl.module.js b/node_modules/@onflow/fcl/dist/fcl.module.js
index 2781ac6..0a9f1e6 100644
--- a/node_modules/@onflow/fcl/dist/fcl.module.js+++ b/node_modules/@onflow/fcl/dist/fcl.module.js@@ -13,7 +13,7 @@ import { subscriber, snapshoter, send, spawn, INIT, SUBSCRIBE, UNSUBSCRIBE, UPDA
import * as rlp from '@onflow/rlp';
import { Buffer, encode } from '@onflow/rlp';
import { uid } from '@onflow/util-uid';
-import require$$0 from 'buffer';+import * as require$$0 from 'buffer';
export { template as cadence, template as cdc } from '@onflow/util-template';
async function getChainIdFromAccessNode() {
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
@onflow/[email protected]
for the project I'm working on.Otherwise, I get an error trying to load this package using esm and it doesn't play well. Note the fix just uses ES6 syntax just like /rlp import. If you agree I can create a PR.
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: