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

253
Views
No se puede establecer la propiedad 'esprima' de undefined en webpackUniversalModuleDefinition

Estoy recibiendo este error:

TypeError no capturado: no se puede establecer la propiedad 'esprima' de undefined en webpackUniversalModuleDefinition (esprima.js:11) en esprima.js:12

Al intentar cargar una aplicación web:

Captura de pantalla

El error ocurre aquí:

 (function webpackUniversalModuleDefinition(root, factory) { /* istanbul ignore next */ if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); /* istanbul ignore next */ else if(typeof exports === 'object') exports["esprima"] = factory(); else root["esprima"] = factory(); // ** => error is thrown here })(this, function() { // ... });

Como referencia, el archivo webpack.config.js es:

 // webpack.config.js module.exports = { entry: { // import: './src/Three.js' }, mode: 'production', output: { path: __dirname, publicPath: '/', filename: './build/three.min.js' }, devServer: { watchContentBase: true, publicPath: "/", contentBase: "./", hot: true, port: 9090, }, };

¿Alguien puede dar una pista de lo que podría estar mal?

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

0

El error se resuelve utilizando script-loader que se carga como una secuencia de comandos simple en lugar de un módulo:

https://v4.webpack.js.org/loaders/script-loader/

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!