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

161
Visualizações
UI disappears when using sqlite3 and bluebird

I want to create a desktop app. I started to create one by myself using electron and sqlite3. I found out that I didn't understand a lot of things, so I found this tutorial: https://chamaradodandeniya.wordpress.com/2020/02/02/how-to-create-cross-platform-desktop-app-using-electron-react-and-sqllite/ I followed it in order to upgrade my knowledge about electron and sqlite. There are no errors when launching the app which seems great. Though there is one problem. The UI doesn't load! I figured out that the problem occurs because of these two code lines in de dao.js:

const sqlite3 = window.require('sqlite3')
const Promise = window.require('bluebird');

When I delete these lines, the UI comes back to the app. Though I think these lines are important when it comes to saving and getting data from the sqlite3 database.

Is there anyone who can help me solve this problem?

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