[Preact + Vite] Internal server error: $RefreshSig$ is not defined #1379
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
needs: complete repro 🖥️
Issue need to have complete repro provided
platform: ssr 🛠️
Issue related to SSR
Environment
My configs
package.json
vite.config.ts
Description
There is error overlay shows that
[plugin:linaria] $RefreshSig$ is not defined
in development mode (npm run dev
) → Either I comment all Linaria related code in my component (particularlystyled
) or comment used custom hook, the error disappears.I cannot found any solutions or reasons about this error.
File that error occur
MyComponent.tsx
Comment Linaria code will work
or comment custom hook will work
The text was updated successfully, but these errors were encountered: