openapi-typescript-codegen: Type error: Private identifiers are only available when targeting ECMAScript 2015 and higher.
Describe the bug
I have "target": "ES2022"
then also i am getting Type error: Private identifiers are only available when targeting ECMAScript 2015 and higher.
.
I am using NextJS
About this issue
- Original URL
- State: open
- Created 5 months ago
- Reactions: 1
- Comments: 22
@jordanshatford Thank you very much for your work and your responsiveness. I’ve just updated the package and it works perfectly ❤️
@valentin-harrang this has been fixed in v0.31.0 of @hey-api/openapi-ts
@valentin-harrang thanks for testing that. I should have some time later today to check it out and figure out what’s causing it.
@sagardwivedi I have the same problem. Have you fixed your problem?
I use Next.js 14 with TypeScript and I tried to exclude
src/types/generated
directory by adding this line istsconfig.json
file:but I still get the error when I run
npm run build
ornpx tsc
.To temporarily fix the problem I added @ts-ignore but it’s not ideal, I shouldn’t have to do that.