Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish updated npm package #13

Closed
2 tasks done
zone117x opened this issue Jun 9, 2022 · 1 comment
Closed
2 tasks done

Publish updated npm package #13

zone117x opened this issue Jun 9, 2022 · 1 comment

Comments

@zone117x
Copy link

zone117x commented Jun 9, 2022

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the issue has not already been raised

Issue

The Fastify v4 announcement highlights this library https://medium.com/@fastifyjs/fastify-v4-ga-59f2103b5f0e :

import Fastify from 'fastify'
import { TypeBoxTypeProvider, Type } from 'fastify-type-provider-typebox'

const fastify = Fastify({
  ajv: {
    customOptions: {
      strict: 'log',
      keywords: ['kind', 'modifier']
    }
  }
}).withTypeProvider<TypeBoxTypeProvider>()

But it looks like the npm package is out of date and unusable.

npm install @fastify/type-provider-typebox  
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: project@1.0.0
npm ERR! Found: fastify@4.0.0
npm ERR! node_modules/fastify
npm ERR!   fastify@"^4.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer fastify@"github:fastify/fastify#next" from @fastify/type-provider-typebox@0.1.0-beta.1
npm ERR! node_modules/@fastify/type-provider-typebox
npm ERR!   @fastify/type-provider-typebox@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

My machine:

$ node --version
v18.2.0
$ npm --version
8.9.0

My package.json:

  "dependencies": {
    "@types/node": "^17.0.41",
    "fastify": "^4.0.0"
  },
  "devDependencies": {
    "typescript": "^4.7.3"
  }
@RafaelGSS
Copy link
Member

RafaelGSS commented Jun 9, 2022

I'll release it today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants