Closed jamesliu4c closed 6 months ago
@jamesliu4c i believe this will be fixed in the next release. Do you have typescript globally installed or in your package.json?
Hey @jamesliu4c, can you try with v0.43.0?
@mrlubos same issue in 0.43.0
@mtford-carewell just to confirm. Do you have typescript installed. If so which version.
@jordanshatford this was happening in the context of either npx
or yarn dlx
with or without ts installed globally.
No problems when openapi-ts is installed locally and run from .bin
folder.
Thanks @mtford-carewell. Are you able to share the command you're running + config?
@jamesliu4c I don't see how changing that line you mention would fix this issue, the error message specifies which line it breaks on, I will fix that. That being said, it seems there's another error being raised. Once the next release is up, can you try it and see what the actual message is? It will be saved into a log file. cc @mtford-carewell
Description
I get this error when I run it:
When I add a
at this line https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/index.ts#L336 it works.
The config loads. It reads the correct input and creates the correct output.
OpenAPI specification (optional)
No response
Configuration
System information (optional)
Node 20. Mac 14.2.1. Apple Silicon