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

337
Visualizações
How to remove SvelteKit

I have some error with SvelteKit when I run this code :"npm run dev -- --open". It has the issuse like this: Error [ERR_REQUIRE_ESM]: require() of ES Module. I think maybe the error related to SvelteKit v1.0.0-next.199 because I tried several solutions. I also add "type": "module" in package.json, but it not work.My node version is 16.3.0. So anyone know how to remove SvelteKit?

"dependencies": {
    "chart.js": "^3.6.0",
    "cookie": "^0.4.1",
    "moment": "^2.29.1",
    "svelte-i18n": "^3.3.13"
}
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Remove moment library:

npm uninstall moment --save

As explained in the comment CommonJS libs and ECMAScript6 are different standards of JavaScript libs (packing) so you need to look for ECMAScript6 (ES6) libs

Use date-fsn instead moment for example, read more about it here https://date-fns.org/

Also Svelte is compiler when you install the libs install it as dev deps:

npm install date-fns --save-dev
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