#Problem instaling Molt bot

1 messages ยท Page 1 of 1 (latest)

onyx pecan
#

I'm trying to install molt bot but I keep receiving this error.

#

@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.

wet gyroBOT
# onyx pecan I'm trying to install molt bot but I keep receiving this error.

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:

  1. Run pnpm install โ€” Make sure all dependencies are installed first

  2. Clean and rebuild:

    pnpm clean
    pnpm install
    pnpm build
    
  3. Check you're on the latest version:

    cd ~/moltbot-ref && git pull
    
wet gyroBOT
# onyx pecan <@945291831552397354> The error you are seeing (TS2305) is a TypeScript compilat...

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:

  1. Check existing releases and install a stable version
  2. 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 pull to 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! ๐Ÿฆ