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
Using mineflayer from npm causes a "not implemented" error with the crypto module from the node compatibility layer
Steps to Reproduce
Running the code in this index.ts file
importmineflayerfrom'npm:mineflayer'constbot=mineflayer.createBot({username: 'use any value here',host: 'localhost',auth: 'microsoft'})bot.on('login',()=>{console.log('Succesfully logged in!')})
Results in this error
%denorun--allow-allindex.ts
Error: Not implemented: crypto.generateKeyPairSyncatnotImplemented(https://deno.land/std@0.164.0/node/_utils.ts:23:9)atObject.generateKeyPairSync(https://deno.land/std@0.164.0/node/internal/crypto/keygen.ts:662:3)atMicrosoftAuthFlow.initTokenManagers(file:///C:/Users/Link/AppData/Local/deno/npm/registry.npmjs.org/prismarine-auth/1.7.0/src/MicrosoftAuthFlow.js:66:28)atnewMicrosoftAuthFlow(file:///C:/Users/Link/AppData/Local/deno/npm/registry.npmjs.org/prismarine-auth/1.7.0/src/MicrosoftAuthFlow.js:33:10)atObject.authenticate(file:///C:/Users/Link/AppData/Local/deno/npm/registry.npmjs.org/minecraft-protocol/1.36.1/src/client/microsoftAuth.js:16:20)atObject.createClient(file:///C:/Users/Link/AppData/Local/deno/npm/registry.npmjs.org/minecraft-protocol/1.36.1/src/createClient.js:46:23)atObject.createBot(file:///C:/Users/Link/AppData/Local/deno/npm/registry.npmjs.org/mineflayer/4.5.1/lib/loader.js:94:35)atfile:///C:/Users/Link/OneDrive/Documents/minecraft/bots/deno/index.ts:3:12
Cause of this bug is this line that is used inside a dependency of the package
Describe the bug
Using mineflayer from npm causes a "not implemented" error with the crypto module from the node compatibility layer
Steps to Reproduce
Running the code in this
index.ts
fileResults in this error
Cause of this bug is this line that is used inside a dependency of the package
The error triggers when the
createBot
method has this optionauth: 'microsoft'
Expected behavior
Environment
The text was updated successfully, but these errors were encountered: