#Electron Forge React boilerplate cannot import components

1 messages · Page 1 of 1 (latest)

potent breach
#

I setup my electron project by doing the steps at https://www.electronforge.io/guides/framework-integration/react

if i npm start my project like in the first picture that i uploaded no error occurs and program works just fine but if i uncomment the <App/> part it will throw errors at the second picture. The same problem continues with any other jsx file that i try to use at my index.jsx file

lastly i uploaded my app.jsx file you can see it at the third picture

How to create an Electron app with React and Electron Forge

south cedar
#

Error is on L.2 of app.jsx what do you have here?

potent breach
#

it's the beginging of return statement

#

Ok i solve the problem. You should import React from app.jsx