【问题标题】:Error: Unable to deserialize cloned data due to invalid or unsupported versionError: Unable to deserialize cloned data due to invalid or unsupported version
【发布时间】:2022-12-28 01:16:30
【问题描述】:

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.

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)

【问题讨论】:

    标签: npm parcel


    【解决方案1】:

    What I did to resolve this was to delete the.parcel-cache,dist, andnode_modulesfolders, 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

    【讨论】:

    • Same for me - I had to remove .parcel-cache after using nvm to switch versions. Thanks @David.E !
    • For me I had to remove the .cache folder.
    【解决方案2】:

    You can likely get away with just deleting the parcel-cache folder and/or the dist folder. Doing both worked for me, next time I'll experiment with just deleting the .parcel-cache folder.

    After that you can run your run/test command (i.e. yarn start) to rebuild everything.

    【讨论】:

      猜你喜欢
      • 2012-09-02
      • 1970-01-01
      • 2021-01-09
      • 2020-02-09
      • 2021-08-18
      • 2022-01-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多