Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

Error: An accessor cannot be declared in an ambient context #95

Description

@yatryan

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

When building a project with a Typescript version less than 3.7, build fails with an error

ERROR in ../node_modules/@oclif/command/lib/command.d.ts:48:9 - error TS1086: An accessor cannot be declared in an ambient context.

48     get ctor(): typeof Command;
           ~~~~

error Command failed with exit code 1.

This appears to be happening since v1.6.0 (Breaking change introduced in #85). Previous version of oclif v1.5 does not have this issue (as typescript is an earlier version).

What is the expected behavior?

Build should succeed. I'm not sure if typescript can be downgraded, or at least a Breaking Change be noted in the changelog, etc.

x-post: oclif/oclif#350

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions