You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started a fresh react application at my console by entering npx create-react-app my-app. Then, I changed my directory to my-app and ran the command npm start. When the application loaded in Chrome, it failed to compile...error given in console:
i 「wds」: Project is running at http://10.0.0.215/
i 「wds」: webpack output is served from
i 「wds」: Content not from webpack is served from C:\Users\my-path\my-app\public
i 「wds」: 404s will fallback to /
Starting the development server...
Failed to compile.
./src/index.js 1:97
Module parse failed: Unexpected token (1:97)
File was processed with these loaders:
./node_modules/@react-leaflet/core/esm/path.js 10:41
Module parse failed: Unexpected token (10:41)
File was processed with these loaders:
* ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| useEffect(function updatePathOptions() {
| if (props.pathOptions !== optionsRef.current) {
> const options = props.pathOptions ?? {};
| element.instance.setStyle(options);
| optionsRef.current = options;
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
Describe the bug
I started a fresh react application at my console by entering npx create-react-app my-app. Then, I changed my directory to my-app and ran the command npm start. When the application loaded in Chrome, it failed to compile...error given in console:
$ npm start
i 「wds」: Project is running at http://10.0.0.215/
i 「wds」: webpack output is served from
i 「wds」: Content not from webpack is served from C:\Users\my-path\my-app\public
i 「wds」: 404s will fallback to /
Starting the development server...
Failed to compile.
./src/index.js 1:97
Module parse failed: Unexpected token (1:97)
File was processed with these loaders:
You may need an additional loader to handle the result of these loaders.
Did you try recovering your dependencies?
Yes.
Which terms did you search for in User Guide?
(Write your answer here if relevant.)
Environment
(paste the output of the command here.)
Steps to reproduce
(Write your steps here:)
Expected behavior
(Write what you thought would happen.)
Actual behavior
(Write what happened. Please add screenshots!)
Reproducible demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
The text was updated successfully, but these errors were encountered: