It's coming across to me one awkward issue. I made this project a while ago with React using Parcel to build. Now after a couple of months I tried to start the project and it gave me some errors building. I download again the project from the repository and the parcel started to build again for a couple of hours and the same error came up again. Once again, I download the project from the repository and it start to run again, but without any change made in the project...it started to give again the same Build Error. Did some of you had this issue?
Thank you!
(This answer is in response to the New Error you get after upgrading the project to parcel 2.5.0)
When you run parcel index.html
, you'll be invoking the version of parcel that's installed globally, not the one locally specified by package.json
. The error your getting is what I'd expect if the global version was still 2.0.0-rc0
(released August 2021) was run and tried to use the latest version of @parcel/config-default
(installed in your project), because compressor plugin support was added in September 2021.
From the original screenshots, it looks like you already have a "start" command in your package.json
...
{
"scripts": {
"start": "parcel index.html"
}
}
Invoke it by running npm run start
- this will use the version of parcel (2.5.0) installed there.