-
Notifications
You must be signed in to change notification settings - Fork 218
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
Possible regression in 1.16 Typescript client generation #4950
Comments
In my case, in my web app I have a generated-client dir where I execute a script that simply executes Is there an option to make it generate |
can you share your tsconfig? and what's the type set to in the package.json? |
My
Clients are used raw from Should i be updating the |
Yes, setting it to es6 worked. Sorry about that, learned something new today. |
thanks for confirming! |
Can you try updating your project configuration to this https://learn.microsoft.com/en-us/openapi/kiota/quickstarts/typescript#project-configuration And set type module in your package JSON. Please? |
I am not very familiar with nextJS build pipeline. My guess is es modules are not enabled in the build configuration for your project and this is why it does not recognize imports with a JS extension. |
Alright, thanks for your time! |
What are you generating using Kiota, clients or plugins?
API Client/SDK
In what context or format are you using Kiota?
Nuget tool
Client library/SDK language
TypeScript
Describe the bug
in
1.16
of thedotnet tool
the clients are generating like this:in 1.15 they were generated like this:
Expected behavior
should generate like this:
How to reproduce
update to dotnet tool version 1.16
execute:
dotnet kiota generate -d ${swaggerUrl} --language typescript --class-name ${serviceLabel}ServiceClient --exclude-backward-compatible --output ./generated-clients/${serviceName}
Open API description file
No response
Kiota Version
1.16.0+f7ce8b88eefa1c00cb6f87dd48335baac96d2cc9
Latest Kiota version known to work for scenario above?(Not required)
No response
Known Workarounds
downgrade to 1.15
Configuration
No response
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: