#Uncaught ReferenceError

17 messages · Page 1 of 1 (latest)

weary hatch
#

I'm on "Build a React Info Site" course and I'm running my app local. When I try to make a new JS file to import on index.js I get an error. Is there anything that I need to do extra to make it work?

lunar sequoia
#

Hello Shirasu, can you please hover over the x mark to highlight the intellisense error and share?

weary hatch
#

Sure 🙂

#

I have export default on the Header.js as well

pallid cape
#

@weary hatch how did you set up your React project?

weary hatch
#

I simply download from the scrimba and click go live to see if it works or not

#

It's pretty frustrating because I have to spend more time on debugging to make it run than actually learning. And I really like running it locally because I can own my code easily

#

I can't focus well by just listening and looking at people doing things since I have adhd so I have to do something to distract myself to learn well. In this case, coding while instructor is coding 🙂

pallid cape
#

@weary hatch yeah that won't work. Your best bet is to set up Vite on your local machine and do your projects with that.

weary hatch
#

Alright, thank you

pallid cape
weary hatch
#

I actually used Vite but it didn't go well so I took a break from scrimba for a while 😦

pallid cape
#

Aww sorry to hear that. Anything I can do to help?

weary hatch
#

Thanks for the help. But I notice that vite won't help me what I want to achieve either because when I do npx create react app I don't need vite

pallid cape
#

Yes, create-react-app and vite do similar things for React projects - I personally prefer vite because it's faster.