Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

423
Vistas
TypeError: window.preload.local is undefined

I started working on a legacy project developed with ReactJS v16, Redux4.x, Node v10.24 and NPM v6.x.

I've been having a lot of trouble setting this up and running, but now a new issue appeared and I just can't figure out what to do:

Uncaught TypeError: window.preload.local is undefined
    Comunas Comunas.js:17

After diving into the project's files I found the following React Component:

const Comunas = ({ ...props }) => (
  <ExField type="select" {...props}>

    <option value="">Selecciona una Comuna...</option>

    {window.preload.local.map(local => (
      <optgroup key={local.RegionID} label={local.Name}>
        {local.provincias.map(provincia => (
          <React.Fragment key={provincia.ProvinciaID}>
            {provincia.comunas.map(comuna => (
              <option key={comuna.ComunaID} value={comuna.ComunaID}>
                {comuna.Name}
              </option>
            ))}
          </React.Fragment>
        ))}
      </optgroup>
    ))}

  </ExField>
);

Comunas.propTypes = {};

const mapStateToProps = createStructuredSelector({});

const withConnect = connect(
  mapStateToProps,
  () => ({}),
);

I've never seen window.preload (line 6) before.

Does anybody know where can I find information about that window's property?

Thank you very much in advance!

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda