vitalics / ajv-ts

First-class ajv typescript JSON-schema builder inspired from Zod
https://www.npmjs.com/package/ajv-ts
MIT License
39 stars 1 forks source link

Couldn't Install Package because of Typescript Version #21

Closed rjvim closed 7 months ago

rjvim commented 7 months ago

Describe the bug npm install ajv-ts didn't succeed.

npm install ajv-ts
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: hyperbola-investor@undefined
npm ERR! Found: typescript@5.3.3
npm ERR! node_modules/typescript
npm ERR!   dev typescript@"^5.1.6" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer typescript@"5.0.0" from ajv-ts@0.3.1
npm ERR! node_modules/ajv-ts
npm ERR!   ajv-ts@"*" from the root project

To Reproduce Steps to reproduce the behavior:

  1. Install latest Remix application
  2. Run npm install ajv-ts
  3. Notice above error

Expected behavior Installation should work, shouldn't depend on a single version of Typescript?

Desktop (please complete the following information):

vitalics commented 7 months ago

As a workaround, I can recommend installing with --force flag until fixed.

vitalics commented 7 months ago

Fixed at 0.4 version