fix: build errors fix attempt

This commit is contained in:
2024-05-19 15:11:17 +02:00
parent 63e0be09e6
commit d4b58ddc87
3 changed files with 511 additions and 1215 deletions

View File

@@ -73,10 +73,8 @@ export default function Page() {
});
};
// @ts-expect-error react 19 beta error
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
const onJsonChange: EditorProps["onChange"] = value => setFormByJson(value ?? "");
// @ts-expect-error react 19 beta error
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
const onYamlChange: EditorProps["onChange"] = value => setFormByYaml(value ?? "");
@@ -137,11 +135,9 @@ export default function Page() {
</PageSection>
<div className="flex flex-1 flex-col gap-x-4 gap-y-5 lg:flex-row">
<PageSection className="min-h-[200px] flex-1" title="Json" control={jsonControl}>
{/* @ts-expect-error react 19 beta error */}
<Editor language="json" value={form.json} onChange={onJsonChange} />
</PageSection>
<PageSection className="min-h-[200px] flex-1" title="Yaml" control={yamlControl}>
{/* @ts-expect-error react 19 beta error */}
<Editor language="yaml" value={form.yaml} onChange={onYamlChange} />
</PageSection>
</div>

View File

@@ -87,5 +87,11 @@
"serve": "^14.2.1",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5"
},
"pnpm": {
"overrides": {
"@types/react": "npm:types-react@beta",
"@types/react-dom": "npm:types-react-dom@beta"
}
}
}

1716
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff