-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for browser only (Svelte + Vite)? #1381
Comments
Hi @nine-2-five While we have no tested this specific framework, the dependencies and the generated code are supposed to work both in a node or browser context. |
I got it to compile, but this pops out in browser:
|
Thank you for the additional information. Can you run |
Sure, this the result: ├── @microsoft/[email protected] |
Thank you for the additional information. Since UntypedNode is an interface, my guess is that it gets "erased at transpilation" but somehow something still refers to it. In the generated client, can you search for any reference to UntypedNode please and share how they are used here please? |
It is referenced on multiple lines in
|
Thank you for the additional information. Can you also share the import for the untyped node please? |
|
Thank you for the additional information. |
Do you know when this will be available in NPM? |
It's not a change of the NPM package but of the generator. |
Ah, sorry, I thought I installed it globally by npm, but it was installed by dotnet cmd. |
I have successfully tested a Kiota Typescript client in a standalone Node project ran with npx tsx index.ts.
However my requirement is to call this client from a Svelte (Vite bundled) app, and that is browser only.
Is there any chance this could happen, with current standings?
The plan was to use it from a Svelte SPA running inside MAUI HybridWebView.
The text was updated successfully, but these errors were encountered: