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

211
Visualizações
@parcel/core: Failed to resolve 'index.html' Getting this error

My package.json file

{
"name": "aiky",
"version": "1.0.0",
"description": "Recipe application",
"default": "index.html",
"scripts": {
  "start": "parcel index.html",
  "build": "parcel build index.html --dist-dir ./dist"
},
"author": "Akash Kesharwani",
"license": "ISC",
"devDependencies": {
  "@parcel/resolver-glob": "^2.0.0-rc.0",
  "@parcel/transformer-image": "^2.0.0-rc.0",
  "@parcel/transformer-sass": "^2.0.0-rc.0",
  "parcel": "^2.0.0-rc.0",
  "sass": "^1.26.10"
},
"dependencies": {
  "core-js": "^3.6.5",
  "fractional": "^1.0.0",
  "regenerator-runtime": "^0.13.7"
},
"main": "index.js"
}

I can't find the solution over the internet. Before this, I was getting this error

@parcel/core: Failed to resolve 'src/img/test-1.jpg' from './index.html'

@parcel/resolver-default: Cannot load file './src/img/test-1.jpg' in './'.

So, I installed @parcel/resolver-glob and also added .parcelrc in root with this text

{
"extends": "@parcel/config-default",
"resolvers": ["@parcel/resolver-glob"]
}
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

It's not very obvious from the Parcel documentation, but you will need to include the default resolvers by adding the literal string "..." to the resolvers array.

The "..." syntax can be used to extend the default resolvers. This allows you to override the resolution for certain dependencies, but fall back to the default for others. Generally, you'll want to add your custom resolvers before running the default ones.

{
  "extends": "@parcel/config-default",
  "resolvers": ["@parcel/resolver-glob", "..."]
                                         ^^^^^
}
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