Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

723
Views
Error: se requiere un token de acceso API para usar Mapbox GL

Estoy usando la biblioteca react-gl para usar map-api usando mapbox. He creado un mapbox de cuenta y aún muestra el error que se muestra en la imagen.

Aquí está mi código para app.js

 import * as React from 'react'; import Map from 'react-map-gl'; function App() { return ( <Map initialViewState={{ longitude: -122.4, latitude: 37.8, zoom: 14 }} mapboxApiAccessToken = {process.env.REACT_APP_MAPBOX} style={{width: 600, height: 400}} mapStyle="mapbox://styles/mapbox/streets-v9" /> ); } export default App

Aquí está el error: ingrese la descripción de la imagen aquí

Aquí está mi error en vscode

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Me enfrenté al mismo problema. Debe cambiar mapboxApiAccessToken a mapboxAccessToken.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!