Skip to content

Replace Axios for Effect #85

@guillempuche

Description

@guillempuche

Preflight checklist

Ory Network Project

No response

Describe your problem

Axios 0.27 and the latest 1.8.4 for newest React Native (I'm using 0.76 with Expo v52 in https://github.com/pactochat/pacte/tree/main/apps/expo) need Metro resolvers for buffer, stream, assert, http, zlib...

Expo web works in my project, because uses Axios' browser exports (v0.x and v1.x), but native app encounters Axios's Node incompatibilities (stream, url, crypto, buffer...), like this one:

The package at "node_modules/@ory/client/node_modules/axios/dist/node/axios.cjs" attempted to import the Node standard library module "http"

Describe your ideal solution

Replace Axios for a custom solution or a cross-platform Typescript library, like Effect https://effect.website/docs/error-management/retrying/.

Workarounds or alternatives

I'm trying to find Metro resolvers.

Version

@ory/client@1.20.6

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    featNew feature or request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions