Coder Social home page Coder Social logo

Comments (6)

mooreds avatar mooreds commented on June 9, 2024

Thanks for the bug report. Will take a look in the next few days.

from fusionauth-typescript-client.

koshkarov avatar koshkarov commented on June 9, 2024

Same issue with 1.30.2.

from fusionauth-typescript-client.

ocean-rey avatar ocean-rey commented on June 9, 2024

for anyone else coming here from a google search, here's how i got it "working" in my project:

install node package patch-package
npm install --save patch-package

in your package.json file add the following script to the "scripts" block
"postinstall": "patch-package"

in /node_modules/@fusionauth/typescript-client/build/src/FusionAuthClient.d.ts:
add
//@ts-ignore right above
import { RequestCredentials } from "node-fetch";

repeat in /node_modules/@fusionauth/typescript-client/build/src/IRESTClient.d.ts for
import { RequestCredentials, Response } from "node-fetch";

after saving your changes, in your project root run
npx patch-package @fusionauth/typescript-client

and voila.

this is really more of a band-aid rather than a proper fix but if you need to go live asap this seems to work.

from fusionauth-typescript-client.

Ilchuk-Mihail avatar Ilchuk-Mihail commented on June 9, 2024

@ocean-rey You could also try adding "@types/node-fetch": "^2.5.7" to your dev/dependencies.

from fusionauth-typescript-client.

ocean-rey avatar ocean-rey commented on June 9, 2024

@ocean-rey You could also try adding "@types/node-fetch": "^2.5.7" to your dev/dependencies.

I did try this but it didn't seem to work for me; perhaps i'm doing something wrong?

from fusionauth-typescript-client.

Ilchuk-Mihail avatar Ilchuk-Mihail commented on June 9, 2024

For me tsc --build didn't work (errors at the first comment), but when I installed that package to devDependencies, the build works. (So just adding this and reinstall packages works for me)

from fusionauth-typescript-client.

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.