question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jsx in index.js causing compiling error

See original GitHub issue

I’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:open
  • Created 6 years ago
  • Reactions:12
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
ghostcommented, Jan 4, 2018

This fork repo has been working really well for me: https://github.com/kmwhelan93/react-geocoder-autocomplete

3reactions
shk172commented, Jul 24, 2017

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found