Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

195
Vistas
Trying to build project with parcel, but keep running into unsupported file type error

I am trying to build a project with parcel. I have followed all the instructions from my assignment, yet this error keeps showing up on my terminal whenever I try to run:

parcel src/index.html

This is the error message:

Build failed.

@parcel/core: Unexpected output file type .html in target "main"

C:\Users\johan\myflix-client\package.json:4:11 3 | "version": "1.0.0",

4 | "main": "src/index.html", | ^^^^^^^^^^^^^^^^ File extension must be .js, .mjs, or .cjs 5 | "scripts": { 6 | "test": "echo "Error: no test specified" && exit 1"

ℹ The "main" field is meant for libraries. If you meant to output a .html file, either remove the "main" field or choose a different target name.

I have even tried to remove the "main" altogether even though I was told that I needed it there, and it just throws more errors.

Please any help on this is greatly appreciated!

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

In package.json, you can try changing "main" to "default":

"default": "index.html"

about 4 years ago · Juan Pablo Isaza Denunciar

0

changing "main" to "default" (in package.json) fixed the problem for me!

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda