#Problem instaling Molt bot
1 messages ยท Page 1 of 1 (latest)
@grave hamlet The error you are seeing (TS2305) is a TypeScript compilation error. It indicates that the src/discord/targets.ts file is trying to import something called DirectoryConfigParams and ChannelDirectoryEntry, but these items do not exist (or are not being exported) in the source file.
Since you are using version 2026.1.27-beta.1 (a very recent test version), it is likely that there is a bug in the source code of that specific version or that the installation process skipped important scripts.
This is a TypeScript build error in Moltbot. The issue is that src/discord/targets.ts is trying to import types from ../channels/targets.js, but those types aren't being exported properly.
Quick things to try:
-
Run
pnpm installโ Make sure all dependencies are installed first -
Clean and rebuild:
pnpm clean pnpm install pnpm build -
Check you're on the latest version:
cd ~/moltbot-ref && git pull
That's correct โ 2026.1.27-beta.1 is indeed a very recent test version, and that TS2305 error looks like a regression or bug introduced in that build.
Quick fix: Try installing a stable version instead. Check the releases page:
Or install the latest stable tag:
pnpm install
The most reliable approach is to:
- Check existing releases and install a stable version
- Report this bug if it's blocking you โ the maintainers can push a fix
If you're comfortable with it, you could also:
- Check if there's an open issue about this
- Try
git checkout main && git pullto get the latest code
The most common cause is a stale build or being on an older commit. Make sure you have the latest code before building.
What version are you running? Run moltbot --version โ version mismatch is a common cause of weird errors.
If that doesn't help, can you share:
- Your Moltbot version (
moltbot --version) - What branch/commit you're on (
git log -1 --oneline) - Whether you just cloned or updated recently
This will help me narrow it down! ๐ฆ
- Report your findings in #bug-reports so they can investigate
Let me know if you need help finding a working version or reporting the issue! ๐ฆ