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

i can't run the test.js #46

Closed
hutu13879513663 opened this issue Sep 1, 2020 · 1 comment
Closed

i can't run the test.js #46

hutu13879513663 opened this issue Sep 1, 2020 · 1 comment

Comments

@hutu13879513663
Copy link

node test.js

/root/mineflayer-pathfinder/node_modules/protodef/src/compiler.js:157
for (const [type, [kind, fn]] of Object.entries(types)) {
^

TypeError: Object.entries is not a function
at ReadCompiler.addTypes (/root/mineflayer-pathfinder/node_modules/protodef/src/compiler.js:157:45)
at new ReadCompiler (/root/mineflayer-pathfinder/node_modules/protodef/src/compiler.js:253:10)
at new ProtoDefCompiler (/root/mineflayer-pathfinder/node_modules/protodef/src/compiler.js:12:25)
at createProto (/root/mineflayer-pathfinder/node_modules/prismarine-nbt/nbt.js:9:20)
at Object. (/root/mineflayer-pathfinder/node_modules/prismarine-nbt/nbt.js:15:15)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
How to fix it

@Karang
Copy link
Collaborator

Karang commented Sep 1, 2020

Update your node version

@Karang Karang closed this as completed Oct 21, 2020
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