[Bug]: When you run build app nextjs version 12.3.4
PequenoJoohn opened this issue · comments
Jonathan Matos commented
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]>;
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]>;
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
David Sheldrick commented
Thanks for the report! I will close this with no action because it seems like a typescript backwards compat issue.