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

239
Views
Error al crear un proyecto de resumen que tiene un mapa de folleto: "esto" se ha reescrito como "indefinido"

Cuando construyo mi proyecto LeafletJS usando rollup, aparece el siguiente error:

 (!) `this` has been rewritten to `undefined` https://rollupjs.org/guide/en/#error-this-is-undefined node_modules/leaflet/dist/leaflet-src.js 1: /* @preserve ^ 2: * Leaflet 1.8.0, a JS library for interactive maps. https://leafletjs.com 3: * (c) 2010-2022 Vladimir Agafonkin, (c) 2010-2011 CloudMade

Esto apunta a la siguiente definición de módulo en el código del folleto:

 (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : ((global = typeof globalThis !== 'undefined' ? globalThis : global || self), factory((global.leaflet = {}))); })(this, function (exports) {

¿Hay alguna forma de deshabilitar esta característica de rollup / babel para que este archivo se genere? Intenté reemplazar 'esto' con 'ventana' pero la compilación no funcionó.

Mi configuración acumulativa se puede encontrar aquí: https://github.com/xbgbtx/artist-map-2/blob/main/rollup.config.js

about 4 years ago · Juan Pablo Isaza
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!