Index.js import error

Hello, I am following this link:, But once i delete rm src/logo.svg and add below to my index.js:


        <App />

in my src/index.js i get errors when i add import App from "./App";, please see below errors:

Error 01

Line 10: ‘App’ is not defined react/jsx-no-undef

Search for the keywords to learn more about each error.

Error 2


Attempted import error: 'App' is not exported from './App'.

If anyone can please advise where i am going wrong, thank you?

Thank you,

The error is basically saying that App wasn’t exported in your App.js. What does that file look like?

Hello @jayair,

Seems like i past that, and now I am stuck with this error:

Failed to compile

./node_modules/react-bootstrap/es/AccordionContext.jsError: ENOENT: no such file or directory, open '/home/ec2-user/environment/react/node_modules/react-bootstrap/es/AccordionContext.js'

This error occurred during the build time and cannot be dismissed.

Seems like we are missing AccordionContext.js, if so how do i get this?

Thank you Jay

got it working,

npm cache clean --force

Please see github issue Link

Thank you,

1 Like