capnp-ts
capnp-ts copied to clipboard
Compiler error using with TypeScript 4.8
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 [email protected]
.
However, there is a breaking change TS#49089 in TypeScirpt 4.8, hence [email protected]
does not work with [email protected]
.
Temporary Solution
Lock the version of TypeScript before installing capnpc-ts
npm install [email protected]
npm install capnpc-ts