Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

error: Uncaught (in promise) TypeError: TS2801 [ERROR]: This condition will always return true since this 'Promise<boolean>' is always defined. #391

@Lite5h4dow

Description

@Lite5h4dow
error: Uncaught (in promise) TypeError: TS2801 [ERROR]: This condition will always return true since this 'Promise<boolean>' is always defined.
    if (existsFile(path)) {
        ~~~~~~~~~~~~~~~~
    at https://deno.land/x/[email protected]/server/aleph.ts:941:9

TS2773 [ERROR]:     Did you forget to use 'await'?
        if (existsFile(path)) {
            ~~~~~~~~~~~~~~~~
        at https://deno.land/x/[email protected]/server/aleph.ts:941:9
  const { default: cmd, helpMessage: cmdHelpMessage } = await import(`./commands/${command}.ts`)
                                                        ^
    at async main (https://deno.land/x/[email protected]/cli.ts:64:57)

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✘ bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions