Open hiendaovinh opened 4 months ago
They are actually compatible but the build delivers crossOrigin as string | undefined. Not union const so the tsc compiler is not happy.
const links = () => [
{ rel: "preconnect", href: "https://fonts.googleapis.com" },
{
rel: "preconnect",
href: "https://fonts.gstatic.com",
crossOrigin: "anonymous"
}
];
Reproduction
Setup Remix with vite and cloudflare template
Add these links
Build and test
System Info
Used Package Manager
npm
Expected Behavior
The tsc command successfully ran.
Actual Behavior