My attempt at creating a project using parcel has hit a snag. Despite diligently following the guidelines provided in my assignment, an error message consistently appears in my terminal each time I initiate the command:
parcel src/index.html
The error message reads as follows:
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.
Despite attempts to delete the "main" field, despite previous instructions stating its necessity, the issues persist and grow even more complex.
Your assistance with this matter would be greatly valued!