complete-javascript-course icon indicating copy to clipboard operation
complete-javascript-course copied to clipboard

Forkify - Parcel problem fix

Open AKKK1 opened this issue 2 years ago • 2 comments

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.

AKKK1 avatar Aug 19 '22 20:08 AKKK1

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.

akozdev avatar Sep 21 '22 18:09 akozdev

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

alexanderchilari avatar Sep 24 '22 04:09 alexanderchilari