mapbox / mapbox/react-geocoder

jsx in index.js causing compiling error

Open
#25 6 comments 12 reactions 0 assignees View on GitHub
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

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.