mapbox / mapbox/react-geocoder
jsx in index.js causing compiling error
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 136
- Forks
- 61
- PR merge metrics
- No merged PRs in 30d
Description
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)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with index.js at line 135 and reproduce the create-react-app build failure shown in the report. Trace how that file is published and consumed, then verify the package no longer exposes syntax the reported build cannot parse. Done when the example project compiles without the Unexpected token at 135:16.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100