Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

210
Views
@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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!