Build Better Websites. Create modern, resilient user experiences with web fundamentals.
29.47k
stars
2.48k
forks
source link
Vite: ErrorBoundary with predefined links cause "Expected server HTML to contain a matching <link> in <head>." #9144
Open
mikkpokk opened 6 months ago
Reproduction
npx create-remix@latest --template remix-run/remix/templates/express
npm install -D sass
npm run dev
routes/test.tsx
:routes/_index.tsx
root.tsx
: Applying styles from sass, plus adding custom linksSystem Info
Used Package Manager
npm
Expected Behavior
When hard-reloading /test route, it should return ErrorBoundary without breaking styles.
Actual Behavior
All the styles will be removed during the mount due to "Expected server HTML to contain a matching in
."Anomaly is not happening when using the Link navigation or production mode. It only occurrs during the inital load and dev server.