Home Game Development Error: Current surroundings doesn’t present a require() for requiring ‘crypto’ – Cocos Creator

Error: Current surroundings doesn’t present a require() for requiring ‘crypto’ – Cocos Creator

0
Error: Current surroundings doesn’t present a require() for requiring ‘crypto’ – Cocos Creator

[ad_1]

Hello!
I bumped into an issue. I imported the library into the mission, however I find yourself getting an error once I begin the mission:

Error: Current surroundings doesn't present a require() for requiring 'crypto'.

I’ve tried many options discovered within the documentation and on third-party websites. But nothing labored. How can I clear up this drawback?

As I perceive third celebration packages which I import have require() operate which isn’t supported by present surroundings. But I can’t work out repair it.

You can seek advice from this doc to make use of crypto:

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here