jsjoeio / react-ts-vitest-template

A template with React, TypeScript, Vite, Vitest, React Testing Library
10 stars 9 forks source link

createRoot(...): Target container is not a DOM elemen #2

Open aliscie opened 10 months ago

aliscie commented 10 months ago

I just adjust my old project just like ur template but I am getting FAIL src/frontend/tests/React/App.test.tsx [ src/frontend/tests/React/App.test.tsx ] Error: createRoot(...): Target container is not a DOM element. ❯ createRoot node_modules/react-dom/cjs/react-dom.development.js:29345:11

jsjoeio commented 10 months ago

Ah...I haven't looked at this code in a really long time. I'm not sure what that could be to be honest. Sorry about that!