samchon / nestia

NestJS Helper Libraries + TypeScript OpenAPI generator
https://nestia.io/
MIT License
1.85k stars 95 forks source link

error while loading nestia.config.ts if compilerOptions.module is not commonjs #127

Closed SkyaTura closed 2 years ago

SkyaTura commented 2 years ago

Summary

Write a short summary of the bug in here.

Code occuring the bug

tsconfig.json

{
  "compilerOptions": {
    "module": "esnext",
  }
}

Error

$ nestia sdk
Unexpected token 'export'
SkyaTura commented 2 years ago

I'd like to submit a PR to solve this issue.