mapbox / mapbox/react-geocoder

jsx in index.js causing compiling error

Open
#25 6 comments 12 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.