Giter VIP home page Giter VIP logo

Comments (12)

stijnvanhulle avatar stijnvanhulle commented on May 27, 2024 1

This is normally already fixed but it was not yet included in a new version. That new version will be published later today :)

from kubb.

stijnvanhulle avatar stijnvanhulle commented on May 27, 2024 1

@weicong Hmm seems indeed to be a Windows issue(/ vs ). I will create another version and come back to you :)

from kubb.

stijnvanhulle avatar stijnvanhulle commented on May 27, 2024 1

@weicong Sorry, I made a small mistake, should be fixed with beta 17

from kubb.

stijnvanhulle avatar stijnvanhulle commented on May 27, 2024

Fixed in version 1.0.0-beta.12

from kubb.

weicong avatar weicong commented on May 27, 2024

Maybe the problem is related to the version of @tanstack/react-query

1681174772162

from kubb.

stijnvanhulle avatar stijnvanhulle commented on May 27, 2024

@weicong Can you provide me with the kubb.config you used and the OpenAPI/Swagger file(or a part of it)?

from kubb.

weicong avatar weicong commented on May 27, 2024

@stijnvanhulle https://github.com/weicong/kubb-gen-test.git

I also have a problem, exportAs doesn't work.

from kubb.

stijnvanhulle avatar stijnvanhulle commented on May 27, 2024

@weicong Tried your repo and the exportAs was working for me, not sure what is going wrong here :(

from kubb.

weicong avatar weicong commented on May 27, 2024

@stijnvanhulle I'm using Windows, does that matter? 😭

from kubb.

weicong avatar weicong commented on May 27, 2024

@stijnvanhulle I cloned the code from https://github.com/kubb-project/kubb.git and compiled it

image

from kubb.

weicong avatar weicong commented on May 27, 2024

@stijnvanhulle exportAs works well, and error TS2769 no longer occurs, thanks.

from kubb.

weicong avatar weicong commented on May 27, 2024

@stijnvanhulle error TS2769 has appeared again in v1.0.0-beta.15 ;

import type { useQuery, QueryKey, UseQueryResult, UseQueryOptions, QueryOptions } from "@tanstack/react-query";
import type { useMutation, UseMutationOptions } from "@tanstack/react-query";

and, useQuery, useMutation is not a type,

perhaps, it is related to Windows OS again.

image

from kubb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.