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

483
Visualizações
Clarifai api referenceerror : process is not defined

I get such an error on npm start on clarifai api [1]: https://i.stack.imgur.com/pHRNz.png

Open bootstrap:27:

    // Execute the module function
    try {
        var execOptions = { id: moduleId, module: module, factory: __webpack_modules__[moduleId], require: __webpack_require__ };
        __webpack_require__.i.forEach(function(handler) { handler(execOptions); });
        module = execOptions.module;
        execOptions.factory.call(module.exports, module, module.exports, execOptions.require);
    } catch(e) {
        module.error = e;
        throw e;
    }

    // Flag the module as loaded
    module.loaded = true;

    // Return the exports of the module
    return module.exports;
}

and my App.js details;

const app = new Clarifai.App({
  apiKey: '****',
})
 
///

  onButtonSubmit = () => {
    console.log('click')
    app.models
      .predict(
        '45fb9a671625463fa646c3523a3087d5',
        'https://samples.clarifai.com/metro-north.jpg'
      )
      .then(
        function (response) {
          console.log(response)
        },
        function (err) {
          //
        }
      )
  }

I am getting this error before render in console.log. what would be the reason?

Happy coding day! :)

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

As stated in the documentation you need to use Broserify. You are missing NodeJS globals. Please let us know if this does not work for you as this library is unfortunately not under active maintenance currently.

about 4 years ago · Juan Pablo Isaza Relatório
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