/app/node_modules/minecraft-protocol/src/transforms/framing.js:66
} else { throw e }
^
Error: [Prismarine-chunk] No chunk implementation for 1.12.2 found
at loader (/app/node_modules/prismarine-chunk/src/index.js:24:13)
at inject (/app/node_modules/mineflayer/lib/plugins/blocks.js:18:44)
at plugins.forEach (/app/node_modules/mineflayer/lib/plugin_loader.js:26:7)
at Array.forEach (<anonymous>)
at injectPlugins (/app/node_modules/mineflayer/lib/plugin_loader.js:25:13)
at Bot.onInjectAllowed (/app/node_modules/mineflayer/lib/plugin_loader.js:12:5)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:106:13)
at Bot.emit (events.js:208:7)
at Client.next (/app/node_modules/mineflayer/index.js:109:12)
means I don’t have node_modules dir how can I fix that ? is it even possible to fix
I don’t see any errors on that project right now, but it looks like you made a few changes since the last post so a subsequent reinstall may have cleared up the issue. Are you still seeing problems?
I’m not seeing it right now, but you’ve made a few changes, so maybe you re-removed it?
Looking a little more closely, I don’t think this is related to package installation after all. I don’t know much about Minecraft, but the code that seems like you may have replaced and removed seemed to be connecting to a specific Minecraft server - perhaps that server’s running a version of Minecraft that your packages (seemingly mineflayer which depends on prismarine-chunk) doesn’t support yet?
the code that makes the error is in line 107-115
from what I see its cant find the folder prismarine-chunk that should be installed when installing mineflayer.
the server isn’t the problem because locally this code does work so the problem is somewhere in glitch/with something I did wrong
Your project is in a little bit of an unexpected state regarding package install - did you attempt to install packages manually using npm i or the like?
i only installed useing the add package .
i did enable-pnpm and now i see error with “express”
edit:
app@pumpkin-bot-4-1:~ 12:36
$ pnpm install
A store server is running. All store manipulations are delegated to it.
ERROR /app/package.json: Invalid name: "pumpkin bot 4.1"
Aha. My suggestion is never to run pnpm or npm commands directly - always use enable-pnpm or enable-npm to allow Glitch to manage your packages for you.
Further, I’d suggest you run your package.json file contents through http://package-json-validator.com/ until it shows as valid. Then try running enable-pnpm again.