Comments (6)
Thanks for the bug report. Will take a look in the next few days.
from fusionauth-typescript-client.
Same issue with 1.30.2.
from fusionauth-typescript-client.
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.
@ocean-rey You could also try adding "@types/node-fetch": "^2.5.7"
to your dev/dependencies.
from fusionauth-typescript-client.
@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.
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)
- connection refused (`ECONNREFUSED`) when it tries to register and create a user HOT 2
- What is the default timeout for the operation ? HOT 1
- UpdateUser Changes the Password Unexpectedly HOT 2
- patchRegistration not working as intended HOT 3
- SDK method to return current access token or refresh it if expired HOT 4
- ClientResponse `exception` key should be defined as `Errors` type instead of `Error`
- retrieveUserByX does not allow specification of a tenant id HOT 5
- Client and API Documentation don't align - searchEntityTypes HOT 2
- client.logout("refreshtokien here") dont work HOT 2
- Issue with domain sync HOT 5
- EventType includes unused types HOT 4
- Missing /oauth2/device_authorize endpoint
- Missing "Complete the Device Authorization Grant Request" method call HOT 1
- searchUsersByIds Badly formats the query, resulting in an error HOT 1
- Add a default timeout that isn't 0 for requests
- Sveltkit or authJS examples HOT 7
- Unexpected Response for `FusionAuthClient#searchUsersByQuery` When Using `sortFields`. HOT 3
- Receiving punycode deprecation warning HOT 1
- Patch user request types do not allow for removing a user property
- Misguided documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fusionauth-typescript-client.