complete-javascript-course
complete-javascript-course copied to clipboard
Forkify - Parcel problem fix
Forkify had problem when - npm run
cant run with "main": "index.html", in package.json
i change it to index.js and it run perfectly.
Thanks for sharing a solution 👍
You can also completely remove this line main: "index.html"
from package.json. Parcel uses main as the output file for libraries. NPM adds this line to package.json by default, but we don't need it in this case, because we're building a standalone project, and not a library.
Thanks for sharing a solution 👍 You can also completely remove this line
main: "index.html"
from package.json. Parcel uses main as the output file for libraries. NPM adds this line to package.json by default, but we don't need it in this case, because we're building a standalone project, and not a library.
For me deleting worked, thanks