Build for Production

Error occurs while Building Production :point_down:

parcel build index.html
� Build failed.
@parcel/namer-default: Target “main” declares an output file path of “index.js” which does not match the compiled bundle type “html”.

go to the jason file where it said main change it from “index.js” to “cool.js” save it then run the build again it should work. since i had the same problem