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

161
Views
Cómo usar un archivo JS existente en un proyecto vue

Necesito usar este archivo JS en mi proyecto vue3.

https://gist.github.com/imolorhe/b31f95e1548ad7d1b233de26267fe21c#file-jungle-js

Mi biblioteca JS es

 import { Jungle } from "./jungle.js"; async pitchTransform( audioBuffer, pitchMod ) { let ctx = new OfflineAudioContext( audioBuffer.numberOfChannels, audioBuffer.length, audioBuffer.sampleRate ); let source = ctx.createBufferSource(); source.buffer = audioBuffer; let pitchChangeEffect = new Jungle(ctx); }

La aplicación muestra este error:

Error de sintaxis no detectado: el módulo solicitado '/src/js/jungle.js?t=1659194585032' no proporciona una exportación denominada 'Jungle' (en voiceTransform.js?t=1659199164108:1:10)

¿Cuál es la forma recomendada de incluir y usar jungle.js en esta configuración?

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Como dice el error, ese archivo no tiene una exportación llamada "Jungle". De hecho no tiene ninguno.

Debe exportar esa función manualmente, editando ese archivo y agregando una palabra clave de export :

 // ... export function Jungle(context) { // ...
about 4 years ago · Santiago Trujillo 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!