Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: When you run build app nextjs version 12.3.4 #3734

Closed
1 task done
PequenoJoohn opened this issue May 10, 2024 · 2 comments
Closed
1 task done

[Bug]: When you run build app nextjs version 12.3.4 #3734

PequenoJoohn opened this issue May 10, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@PequenoJoohn
Copy link

What happened?

Hello everyone, today I encountered a bug while building my project using nextjs version 12.3.4. I changed the two position on the code removing the reservations names const the archives schema and validate. Altering this positions and next running again the yarn build is works.

Step 1

node_modules/@tldraw/tlschema/dist-cjs/index.d.ts

                   \/  Remove this
static defineEnum<const Values extends readonly unknown[]>(uniqueId: string, options: {
        defaultValue: Values[number];
        values: Values;
    }): EnumStyleProp<Values[number]>;
Captura de Tela 2024-05-10 às 12 09 54

Step 2

node_modules/@tldraw/validate/dist-cjs/index.d.ts

                              \/ Remove this
declare function literalEnum<const Values extends readonly unknown[]>(...values: Values): Validator<Values[number]>;
Captura de Tela 2024-05-10 às 12 21 36

How can we reproduce the bug?

When you run build app nextjs.

What browsers are you seeing the problem on?

No response

Contact Details

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@PequenoJoohn PequenoJoohn added the bug Something isn't working label May 10, 2024
Copy link

linear bot commented May 10, 2024

@ds300
Copy link
Collaborator

ds300 commented May 20, 2024

Thanks for the report! I will close this with no action because it seems like a typescript backwards compat issue.

@ds300 ds300 closed this as completed May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants