Bot.ts
  • Introduction
  • Installation
  • Configuration
  • Migrate to v9
  • Troubleshooting
  • Command line
    • CLI Overview
    • Docker
    • Build
    • Start
    • Format
    • Lint
    • Test
    • Update
    • Readme
    • Final
  • Usage
    • Command
    • Listener
    • Button
    • Namespace
    • Cron
    • Logger
    • Paginator
    • Database
    • Caching
    • Custom types
  • Native commands
    • Eval
    • Help
    • Database
    • Terminal
    • Turn
    • Info
  • Command examples
    • Prefix
  • Utilities
    • Texts
    • Paths and URLs
    • Dates and durations
    • Special events
    • Other
  • Deployment
    • Production
    • Development
  • Contributing
    • Regulations
    • Coding Style
  • Annexes
    • Discord Support
Powered by GitBook
On this page
  • PSSecurityException on install
  • Fix PSSecurityException
  • Restricted imports
  • Fix restricted imports
  • The CLI crashes on Bun after ~16 answers
  • The CLI's new command is stuck at the final step with Deno
  • Fix CLI stuck with Deno

Was this helpful?

Troubleshooting

Read this category if you have any issues with the framework or the CLI.

PreviousMigrate to v9NextCLI Overview

Last updated 6 months ago

Was this helpful?

PSSecurityException on install

When using the CLI, your console displays an error of type PSSecurityException. (picture attached)

Fix PSSecurityException

Open your PowerShell as administrator and simply enter the following command.

set-executionpolicy remotesigned

Restricted imports

For any Node.js built-in package. Exemple for util:

import { inspect } from "util"
'util' import is restricted from being used by a pattern.

Fix restricted imports

Replace "util" by "node:util"

The CLI crashes on Bun after ~16 answers

The CLI's new command is stuck at the final step with Deno

Fix CLI stuck with Deno

Use bun or node to run the CLI instead. Example:

bot new
# or
npx @ghom/bot.ts-cli new
# or
bunx @ghom/bot.ts-cli new

The fix is not yet found.

Issue 15174