Skip to content

SDK not working in browsers #595

@tzelon-cypator

Description

@tzelon-cypator

Hey,
In the FAQ it says
"If you generate an SDK with the CLI installation process then yes! If you're having trouble getting autogenerated SDKs working in a browser"

I use npx api install *** to install my sdk, but when I try to use it I get Module not found: Can't resolve 'fs/promises'
I see that the generated code imports /api/dist/core which import the prepareParams.ts, and that file imports nodejs modules.

Thank you, for your help.

Metadata

Metadata

Assignees

Labels

area:coreIssues related to `core`, which is the package that powers the SDKs at runtimequestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions