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

201
Visualizações
Trying to add the Lit JS framework to an existing Spring Boot project via Webjar dependency in gradle. Results in:Failed to resolve module specifier

When I try to use the framework I am seeing this error in the browser:

 Failed to resolve module specifier "@lit/reactive-element"

In my html thymeleaf template I have:

<script type="module" th:src="@{/js/simple-greeting.js}"></script>

and in the simple-greeting.js I am referencing the lit framework like:

import {html, css, LitElement} from '/webjars/lit/index.js';

the "simple-greeting.js" is included with my static js. And the Lit dependency is included as a webjar.

I feel like I'm missing something fundamental (hopefully simple) with how the JS frameworks import/export modules. Is there some sort of build process I need to do to leverage the JS framework? (I really hope not)

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