3 ms·
> Did you upgrade Typescript (and if so, why), or did you upgrade some project dependencies, or type definitions? I need to upgrade it because I upgraded a dep
by roberttod 4y ago
> Did you upgrade Typescript (and if so, why), or did you upgrade some project dependencies, or type definitions?
I need to upgrade it because I upgraded a dependency that needed a newer version of TypeScript to compile! And I needed that dependency to be upgraded to use a newer version of NodeJS.
It seems that the newer version of TS was more strict, and now I can't find a type from ProtobufJS that fits the code. I can update here when I understand more about this particular case, but presently my best bet is to loose some typing and autocompleting by using some unknown types :(
- pcthrowaway 4y agoDid you try regenerating protobufjs and .d.ts files after upgrading? For me it's something like npx pbjs -t static-module -o protos.js *.proto npx pbts -o protos.d.ts protos.js