Skip to content

Compiler error using with TypeScript 4.8 #177

@antiphoton

Description

@antiphoton

Background

This repository is developed with TypeScript 4.3.5, because of the package-lock.json file at repository root.

However, the published NPM package capnpc-ts does not contain a package-lock.json file, because there it no package-lock.json in pacakges/capnpc-ts folder. The NPM package capnpc-ts uses TypeScript ^4.2.4.

Problem

When a user runs npm install capnpc-ts, it installs the latest typescript@4.9.5.

However, there is a breaking change TS#49089 in TypeScirpt 4.8, hence capnpc-ts@0.7.0 does not work with typescript@4.9.5.

Temporary Solution

Lock the version of TypeScript before installing capnpc-ts

npm install typescript@4.7.4
npm install capnpc-ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions