Loading...“Thanks. I've added the code. However, this doesn't seem to fix the issue. I'm still getting the same error.
<script type="module">
i...” - "vite-plugin-reac... | Quotum
\n\n","url":"https://github.com/vitejs/vite/issues/1984#:~:text=Thanks.%20I've%20added,website.js%22%3E%3C%2Fscript%3E","creator":{"@type":"Person","name":"Unknown"},"isBasedOn":{"@type":"WebPage","name":"\"vite-plugin-react can't detect preamble. Something is wrong.\" when using styled-components · Issue #1984 · vitejs/vite","url":"https://github.com/vitejs/vite/issues/1984#:~:text=Thanks.%20I've%20added,website.js%22%3E%3C%2Fscript%3E"},"publisher":{"@type":"Organization","name":"Quotum","url":"https://dev.quotum.me"}}
“Thanks. I've added the code. However, this doesn't seem to fix the issue. I'm still getting the same error.
<script type="module">
import RefreshRuntime from "/@react-refresh"
RefreshRuntime.injectIntoGlobalHook(window)
window.$RefreshReg$ = () => {}
window.$RefreshSig$ = () => (type) => type
window.__vite_plugin_react_preamble_installed__ = true
</script>
<script type="module" src="http://localhost:3000/@vite/client"></script>
<script type="module" src="http://localhost:3000/assets/js/website.js"></script>”
"vite-plugin-react can't detect preamble. Something is wrong." when using styled-components · Issue #1984 · vitejs/vite · Read original