Yaki (ShibaTales)
Yaki (ShibaTales)
Explore posts from servers
SSolidJS
Created by Yaki (ShibaTales) on 2/9/2024 in #support
Uncaught ReferenceError: React is not defined
Hello! I am using "solid-js": "^1.7.5" and "solid-start": "^0.2.32" for my solidjs project, but i'm getting this javascript-disabling bug! The full console error is below, any help is appreciated! ❤️
Uncaught ReferenceError: React is not defined
default StartClient.tsx:81
c dev.js:555
untrack dev.js:444
c dev.js:551
runComputation dev.js:708
updateComputation dev.js:690
devComponent dev.js:562
createComponent dev.js:1278
<anonymous> entry-client.tsx:3
render dev.js:117
updateFn dev.js:181
runUpdates dev.js:815
createRoot dev.js:186
render dev.js:115
hydrate$1 dev.js:274
hydrate dev.js:578
mount mount.tsx:108
<anonymous> entry-client.tsx:3
Uncaught ReferenceError: React is not defined
default StartClient.tsx:81
c dev.js:555
untrack dev.js:444
c dev.js:551
runComputation dev.js:708
updateComputation dev.js:690
devComponent dev.js:562
createComponent dev.js:1278
<anonymous> entry-client.tsx:3
render dev.js:117
updateFn dev.js:181
runUpdates dev.js:815
createRoot dev.js:186
render dev.js:115
hydrate$1 dev.js:274
hydrate dev.js:578
mount mount.tsx:108
<anonymous> entry-client.tsx:3
and the vite.config.ts was like this out of the box:
import { defineConfig } from "vite";
import solid from "solid-start/vite";
import vercel from "solid-start-vercel";

export default defineConfig({
plugins: [ solid({ adapter: vercel() }) ],
build: {
target: 'esnext',
},
});
import { defineConfig } from "vite";
import solid from "solid-start/vite";
import vercel from "solid-start-vercel";

export default defineConfig({
plugins: [ solid({ adapter: vercel() }) ],
build: {
target: 'esnext',
},
});
43 replies