Skip to content
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

@ckb-ccc/ccc Error:code: 'ERR_REQUIRE_ESM' At @joyid+ckb@0.0.11_typescript@5.5.3/node_modules/@joyid/ckb/dist/index.js #14

Closed
mrqinxd opened this issue Jul 25, 2024 · 10 comments

Comments

@mrqinxd
Copy link

mrqinxd commented Jul 25, 2024

var _ckbsdkutils = require('@nervosnetwork/ckb-sdk-utils');
At
node_modules/.pnpm/@joyid+ckb@0.0.11_typescript@5.5.3/node_modules/@joyid/ckb/dist/index.js:19

and

node_modules/.pnpm/@joyid+ckb@1.0.0_typescript@5.5.3/node_modules/@joyid/ckb/dist/index.js:15

Is there a type script version available?

@Hanssen0
Copy link
Member

var _ckbsdkutils = require('@nervosnetwork/ckb-sdk-utils');

Hi! Thank you for your feedback!

This problem is introduced by the @nervosnetwork/ckb-sdk-utils from the @joyid/ckb. We will contact the JoyID team to upgrade the package's version to fix this problem.

@Hanssen0
Copy link
Member

@Hanssen0
Copy link
Member

Upgraded at 1897de3 .
Published at v0.10.0-alpha.5, please check.

@mrqinxd
Copy link
Author

mrqinxd commented Jul 31, 2024

Thank you for your reply but after I update to 0.0.10-alpha.5 (or even 0.0.10-alpha.9), the problem remains

Error:
.pnpm/@joyid+ckb@1.0.1_typescript@5.5.3/node_modules/@joyid/ckb/dist/index.js:15
var _ckbsdkutils = require('@nervosnetwork/ckb-sdk-utils'); var ckbUtils = _interopRequireWildcard(_ckbsdkutils);

I think this is another similar problem

@mrqinxd
Copy link
Author

mrqinxd commented Jul 31, 2024

I use @ckb-ccc/core and it works but @ckb-ccc/ccc doesn't. Thank you

@mrqinxd
Copy link
Author

mrqinxd commented Jul 31, 2024

Hope to add joyID verifyMessage as soon as possible, thanks

@Hanssen0
Copy link
Member

I use @ckb-ccc/core and it works but @ckb-ccc/ccc doesn't. Thank you

Got it. The problem still exists on CKB SDK JS. We will contact them for this.

@Hanssen0
Copy link
Member

Hope to add joyID verifyMessage as soon as possible, thanks

Yes. It will be added back to CCC as soon as the problem solved.

@Hanssen0
Copy link
Member

Hanssen0 commented Aug 1, 2024

Problem fixed in CKB SDK JS version 0.109.3. ckb-js/ckb-sdk-js#639
verifyMessageJoyId support added back to CCC on 19a2ae5
Please check.
You may need to clean your package-lock.json / pnpm-lock.yaml and node_modules and install again to bump CKB SDK JS's version.

@mrqinxd
Copy link
Author

mrqinxd commented Aug 6, 2024

good!thanks~

@mrqinxd mrqinxd closed this as completed Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants