acacode / swagger-typescript-api

Generate the API Client for Fetch or Axios from an OpenAPI Specification
MIT License
3.37k stars 361 forks source link

structuredClone is not defined #883

Closed taurus-prog closed 3 months ago

taurus-prog commented 3 months ago

ReferenceError: structuredClone is not defined

smorimoto commented 3 months ago

Are you really using Node.js 17 or later? https://nodejs.org/api/globals.html#structuredclonevalue-options

However, the minimum requirement for this project is Node.js 18. https://github.com/acacode/swagger-typescript-api/blob/544216da3a15067cece294e8eeddf0a09f60a87e/package.json#L78