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

338
Visualizações
Query Selectors not working correctly in vue.js for production

I'm having some trouble using query selectors in vue.js for finding an element and then performing operations on it. Everything works correctly when I run the project using the local server, but it stops working as expected when I switch to production.

Here's the snippet:

const el_ = document.querySelector(selector);
console.log("Query selected element", el_);

Here's the console output with serve:

Query selected element <canvas data-v-54b95547 id=​"c" tabindex=​"0" resize width=​"2880" height=​"610" style=​"-webkit-user-drag:​ none;​ user-select:​ none;​ -webkit-tap-highlight-color:​ rgba(0, 0, 0, 0)​;​">​

Here's the console output with build:

Query selected element 

canvas#c
accessKey: ""

....

virtualKeyboardPolicy: ""
width: 2880
[[Prototype]]: HTMLCanvasElement

The project calls the query selector from a library in the back.

Here are some of the links to the source:

  • Repo Info: https://github.com/CIDARLAB/3DuF/tree/webpack-build (you can just build and see the errors on load)
  • Exact location of code: https://github.com/CIDARLAB/3DuF/blob/98d0563796206a0961ea0c9be4fe16687429b89c/src/app/utils/htmlUtils.ts#L13
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