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

277
Visualizações
Webpack polyFill - Cannot read property 'signals' of undefined

I´m currently trying to make the lib youtube-dl-exec work in my electron application. The problem here is that it's not intended to run in the browser!

From what I learned since I tried to solve this issue is that Webpack 5 does no longer provide auto-polyfill, which might be part of the issue I´m facing. To overcome this situation I already tried many solutions I´ve found, but for now they only reduced the list of errors.

My Setup

  • Electron (latest version) (electron-react-boilerplate)
  • Webpack 5
  • Typescript

What I did so far?

Installed this plugin: node-polyfill-webpack

added in my webpack.config.base.js:

   resolve: {
    extensions: ['.js', '.jsx', '.json', '.ts', '.tsx'],
    modules: [webpackPaths.srcPath, 'node_modules'],
    fallback: {
      "fs": false, //added to fix issue
      "child_process": false, //added to fix issue
    }
  },

  plugins: [
    new NodePolyfillPlugin(), //added to fix issue
    new webpack.EnvironmentPlugin({
      NODE_ENV: 'production',
    }),
  ],
};

This reduce the error from a lot to two errors:

Error

I already searched a lot but haven't found anything that could help me. I´m aware of a possible duplicate, but this Question is in my opinion poorly asked and not answered yet.

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