#What's wrong with path or Export components?

4 messages · Page 1 of 1 (latest)

obtuse elbow
clear trail
#

You have the line:

import App from './App'

in your index file. This is attempting to import the default export from the App file. If you check App, you can see there is not default export.

To fix this error you can either update App to export App as default, or update the import to be a named import. That would look like:

import { App } from './App';
heady sky
#

When I typed npx create-react-app final project in the terminal and pressed Enter, it showed an error as seen in this screenshot. How do I solve this issue?

clear trail