Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

176
Visualizações
Uncaught Script Error for JS-Big-Decimal?

I am new to JS and Node so I'm kind of confused with how importing modules work. I am trying to import js-big-decimal into my project hosted on Google App Engine, and so I originally tried this:

var bigDecimal = require('js-big-decimal')

Which gave me an error. I then tried this according to the requireJS documentation:

require(['require', 'js-big-decimal'], function (require) {
    var bigDecimal = require('js-big-decimal');
});

And I am now getting the error

require.js:1961 GET xxxxxxx.uk.r.appspot.com/js-big-decimal.js net::ERR_ABORTED 404

and

require.js:168 Uncaught Error: Script error for "js-big-decimal"
https://requirejs.org/docs/errors.html#scripterror
    at makeError (require.js:168)
    at HTMLScriptElement.onScriptError (require.js:1738)

According to the docs this is due to a syntax error or something somewhere, but I'm not sure where exactly that could even be. What is the proper syntax for what I'm trying to do?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda