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

306
Vistas
I'm having trouble with a jszip configuration

I'm trying to hook up jszip to my Flask/python project running in VS on windows, but JS crashes as soon as I try to import jszip or declare an instance with the 'var JSZip = require("jszip");' call. I've tried both downloading and extracting the zip installer as well as installing with npm. Npm installs with success and node is in the path. The npm seem to create a folder within the 'static' called 'node_modules\jszip' while i've unzipped the one I downloaded to 'scripts\jszip'. When I either add the 'import' declaration or the 'var JSZip = require("jszip");' line, the js function crashes. Same if I only call the top folder 'import JSZip from 'node_modules/jszip'. Without the 'import' nor the 'require' call, the Alert displays. I'm a new to js modules, so it's probably a very basic error but I just cannot spot it. Any help appreciated :-)

import JSZip from 'node_modules/jszip/dist/jszip.js';

function download_zip(arrUrls) {
    alert("1");
    var JSZip = require("jszip");
}
about 4 years ago · Santiago Gelvez
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