jsx in index.js causing compiling error
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, react
- Domain
- frontend
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.
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)
- Dominant language
- JavaScript
- Stars
- 136
- Forks
- 61
- PR merge metrics
- No merged PRs in 30d
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.
More from mapbox/react-geocoder
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
mapbox/react-geocoder#29 · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
mapbox/react-geocoder#28 · 7 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
mapbox/react-geocoder#23 ·
-
trouble with webpack Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
mapbox/react-geocoder#12 · 4 comments ·
All issues in mapbox/react-geocoder
Similar issues
-
bot:ai-assisted component:compact-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
midnightntwrk/midnight-sdk#403 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
DavidAnson/markdownlint-cli2#940 ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
githubnext/gh-aw-workshop#3692 ·
-
agent/guide documentation hive/hosted-available-lke648397-260827-5n31
Difficulty 2/5 1-3 hours Newbie friendliness 90/100