jsx in index.js causing compiling error
See original GitHub issueI’m trying to use the library in a project created by create-react-app. There’s a JSX at line 135.
Error in ./~/@mapbox/react-geocoder/index.js Module parse failed: ob-ocm/node_modules/@mapbox/react-geocoder/index.js Unexpected token (135:16) You may need an appropriate loader to handle this file type. SyntaxError: Unexpected token (135:16)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:12
- Comments:6 (1 by maintainers)
Top Results From Across the Web
got Can't resolve 'react/jsx-runtime' error while use try to create ...
I do not understand what was the main cause of the error since it occurred with no tangible reason since the project was...
Read more >Error Boundaries - React
Error boundaries are React components that catch JavaScript errors anywhere in their child component tree, log those errors, and display a fallback UI...
Read more >8 common React error messages and how to address them
Learn about the most common error messages in React Development and the meaning behind them, the error itself, and how to fix it....
Read more >How to Read React Errors (fix 'Cannot read property of ...
Got an error like this in your React component? ... (react-dom.development.js:17672) at evaluate (index.js:7) at z (eval.js:42) at ...
Read more >A Guide to Common React Errors
There's a mix of JavaScript, React and Babel in here to cover everything from syntax, JSX, to React Hooks. Error: Nothing was returned...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This fork repo has been working really well for me: https://github.com/kmwhelan93/react-geocoder-autocomplete
Was there any solution to this? With create-react-app the webpack config is hidden and I’d rather not have to eject it - if it’s related to webpack