I use parcel to deploy my web projects and on one occasion I got this error below while trying to deploy the page. I tried several solutions I saw online but none worked for me, I didn't even understand some.
Error: Unable to deserialize cloned data due to invalid or unsupported version.
at deserialize (node:v8:345:7)
at deserialize (C:\Users\David Etuk\Documents\Front End Mentor Projects\E-Commerce Site\node_modules\@parcel\core\lib\serializer.js:249:48)
at RequestTracker.getRequestResult (C:\Users\David Etuk\Documents\Front End Mentor Projects\E-Commerce Site\node_modules\@parcel\core\lib\RequestTracker.js:635:54)
at async RequestTracker.runRequest (C:\Users\David Etuk\Documents\Front End Mentor Projects\E-Commerce Site\node_modules\@parcel\core\lib\RequestTracker.js:725:20)
at async applyRuntimes (C:\Users\David Etuk\Documents\Front End Mentor Projects\E-Commerce Site\node_modules\@parcel\core\lib\applyRuntimes.js:174:7)
at async BundlerRunner.bundle (C:\Users\David Etuk\Documents\Front End Mentor Projects\E-Commerce Site\node_modules\@parcel\core\lib\requests\BundleGraphRequest.js:287:25)
at async RequestTracker.runRequest (C:\Users\David Etuk\Documents\Front End Mentor Projects\E-Commerce Site\node_modules\@parcel\core\lib\RequestTracker.js:725:20)
at async Object.run (C:\Users\David Etuk\Documents\Front End Mentor Projects\E-Commerce Site\node_modules\@parcel\core\lib\requests\ParcelBuildRequest.js:62:7)
at async RequestTracker.runRequest (C:\Users\David Etuk\Documents\Front End Mentor Projects\E-Commerce Site\node_modules\@parcel\core\lib\RequestTracker.js:725:20)
What I did to resolve this was to delete the .cache, .parcel-cache, dist, and node_modules folders, then reinstall all lost packages with the command "npm install or npm i" and also build again with the command "npm run start" (or however you do it with parcel).
my screen snip showing the error and the folders to be deleted: