Code Monkey home page Code Monkey logo

Comments (4)

BakerSmithA avatar BakerSmithA commented on August 17, 2024 1

Thanks for fixing that, and so quickly! All working from outside now too :)

from duffel-api-javascript.

andrejak avatar andrejak commented on August 17, 2024

Hi, could you tell me a bit more about your project set up, and how you're importing and initialising the library? I currently don't get the same error when I try to build a few of our projects. For now I'm upgrading our TS versions here in case that will help: https://github.com/duffelhq/duffel-api-java%E2%89%88script/pull/798

from duffel-api-javascript.

BakerSmithA avatar BakerSmithA commented on August 17, 2024

Hi @andrejak, I tried initialising a new Typescript + NodeJS project (npm version 9.8.1, Typescript 5.2.2, NodeJS 18.18.1), where I also managed to replicate the problem. Here's a link to a repo where you should be able to replicate the issue too https://github.com/BakerSmithA/duffel_type_error

Just to note, I found that I could fix the type errors using "skipLibCheck": true in the tsconfig.json (although it's obviously preferable to disable this flag).

If there's something else wrong with the setup here that you can see, then that would be great! Thanks!

from duffel-api-javascript.

andrejak avatar andrejak commented on August 17, 2024

Thank you for creating the sample repo, that was very helpful. I think I've fixed the issues and I am able to build your example with no errors using the new 2.5.6 version. I'm going to close this for now, but if you still see problem feel free to re-open and tag me :)

from duffel-api-javascript.

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.