• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

372
Views
Error después de la instalación en el host con telemetry.js

Recibo un error al intentar compilar mi aplicación Gatsby JS en Netlify. Alguien tiene idea de que puede ser este error?

Error:

 4:53:02 PM: $ gatsby build 4:53:02 PM: /opt/build/repo/node_modules/gatsby-telemetry/lib/telemetry.js:39 4:53:02 PM: store = new _eventStorage.EventStorage(); 4:53:02 PM: ^ 4:53:02 PM: SyntaxError: Unexpected token = 4:53:02 PM: at Module._compile (internal/modules/cjs/loader.js:723:23) 4:53:02 PM: at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) 4:53:02 PM: at Module.load (internal/modules/cjs/loader.js:653:32) 4:53:02 PM: at tryModuleLoad (internal/modules/cjs/loader.js:593:12) 4:53:02 PM: at Function.Module._load (internal/modules/cjs/loader.js:585:3) 4:53:02 PM: at Module.require (internal/modules/cjs/loader.js:692:17) 4:53:02 PM: at require (internal/modules/cjs/helpers.js:25:18) 4:53:02 PM: at Object.<anonymous> (/opt/build/repo/node_modules/gatsby-telemetry/lib/index.js:21:18) 4:53:02 PM: at Module._compile (internal/modules/cjs/loader.js:778:30) 4:53:02 PM: at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) 4:53:02 PM: ​4:53:02 PM: ──────────────────────────────────────────────────────────────── 4:53:02 PM: "build.command" failed 4:53:02 PM: ──────────────────────────────────────────────────────────────── 4:53:02 PM: ​4:53:02 PM: Error message 4:53:02 PM: Command failed with exit code 1: gatsby build 4:53:02 PM: ​4:53:02 PM: Error location 4:53:02 PM: In Build command from Netlify app: 4:53:02 PM: gatsby build 4:53:02 PM: ​4:53:02 PM: Resolved config 4:53:02 PM: build: 4:53:02 PM: command: gatsby build 4:53:02 PM: commandOrigin: ui 4:53:02 PM: publish: /opt/build
about 3 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Primero elimine el paquete node_modules package-lock,json yarn.lock también el cache y la carpeta public creada por Gatsby.

Luego intente ejecutar el siguiente comando en la terminal del directorio de su proyecto: -

 npm cache verify npm cache clean npm install npm audit fix

DESPUÉS

npm start gatsby develop gatsby build de gatsby Si se compila correctamente, limpie la cache y el directorio public de Gatsby e implemente en netifly.

about 3 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 Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error