4

Server running at http://localhost:1234 🚨 Build failed.

@parcel/transformer-js: Unexpected token ). Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` for template literal, (, or an identifier

/home/sizzions/Desktop/Projects/web app/WenApp/src/index.js:5:19

4 | const root = createRoot(container); // createRoot(container!) if you use TypeScript

5 | root.render(/); | ^ Parcel error

`import { createRoot } from 'react-dom/client';
 import App from './App';
   const container = document.getElementById('app');

   const root = createRoot(container); // createRoot(container!) if you use TypeScript
 root.render(<App/>);`

1 Answer 1

3

FWIW, I ran into this for a few minutes until I realized react wasn't no longer in my package.json file. After adding react 18 back in I was good to move on to my next error. :)

Sign up to request clarification or add additional context in comments.

1 Comment

Me i had to recheck all config file from tsconfig to tailwindconfig

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.