unfoldadmin / turbo

Django & Next.js boilerplate
MIT License
180 stars 29 forks source link

Production build linter error? #8

Closed jmuncaster closed 5 months ago

jmuncaster commented 9 months ago

Thanks for this great project.

I am having trouble testing out a production build. When I enter a container and try to build the production bundle, I get the following linter error:

root@374ceeea466f:/app/apps/web# npm run build
...
 ✓ Compiled successfully
   Linting and checking validity of types  .Failed to compile.

   Linting and checking validity of types  ..../../packages/types/api/core/CancelablePromise.ts:25:3
Type error: Private identifiers are only available when targeting ECMAScript 2015 and higher.

  23 |
  24 | export class CancelablePromise<T> implements Promise<T> {
> 25 |   #isResolved: boolean
     |   ^
  26 |   #isRejected: boolean
  27 |   #isCancelled: boolean
  28 |   readonly #cancelHandlers: (() => void)[]

Am I building this wrong? How to fix? Thanks!

jmuncaster commented 9 months ago

This was fixed by regenerating the openapi types.

npm run openapi:generate
jmuncaster commented 9 months ago

Suggested fixes: