#npm run build issue on vs code editor

8 messages · Page 1 of 1 (latest)

forest lantern
#

I am trying to deploy my finished react app to netlify but there are issues I encounter after trying to run npm run build to vs code which is required in order to upload the react app file to netlify.

edgy veldt
#

Unless there is a missed closure above I done see anything wrong with the code snippet, maybe try putting the whole ternary on one line?

marsh shale
#

@edgy veldt I'm having this same issue & tried adding the ternary on one line but it didn't help 😦

edgy veldt
#

An either of you share a GitHub link to the project?

marsh shale
forest lantern
edgy veldt
#

Haven’t been able to check fully yet but see if your index . Html is linking to the proper file (main.jsx or index.js) sometimes scrimba adds an extra directory

edgy veldt
#

@marsh shale It kinda looks like your project uses an older version of react. I think after 18 you import reactDOM from react-dom/client