Open arijoon opened 1 year ago
Hi @arijoon, can you please provide more details on how to reproduce?
With the package.json created by:
npm init -y
npm install @api-ts/io-ts-http
I can run
npm install
node -e "const _ = require('@api-ts/io-ts-http')"
without error.
Some information that might help: what package manager are you using? What version of Node.js are you using (if any)?
My bad should have included the package manager as it is key here. Yarn berry does not automatically install peer dependencies which could lead to this issue
Package manager: Yarn berry nodejs version: 18
My colleague informed me that this was an explicit decision to place these as peer deps (by io-ts) so the client must install it an ensure every lib in the chain is using the same version. However it would be useful to note this for any other yarn-berry users that it'll not work by default and additional libs must be installed at the application level
It seems like some peer dependencies of
io-ts-types
are not met through this package and have to be installed on all clients. Is it possible to add these to the dependencies ofio-ts-http
?: