Relative Content

Tag Archive for javascriptecmascript-6parceljs

Converting a response to json when using Parcel error

Error message: “Unexpected token ‘<‘, “<!DOCTYPE “… is not valid JSON” keeps showing when I run my program using parcel, but when I use live server it’s seems to be fine. The error seems to happen in this code block where I tried to fetch a json file that I made. The file path is correct because it works in the live server.