Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Expected content key de1e4a02ec63c4eb to exist getting this error in React. I am using parcel as a bundler

While creating a react app from scratch (without using create-react-app) using parcel bundler, the parcel throws the following error:

  Error: Expected content key de1e4a02ec63c4eb to exist
      at nullthrows (F:\react\node_modules\nullthrows\nullthrows.js:7:15)
      at AssetGraph.getNodeIdByContentKey (F:\react\node_modules\@parcel\graph\lib\ContentGraph.js:67:38)
      at F:\react\node_modules\@parcel\core\lib\SymbolPropagation.js:52:82
      at Array.map (<anonymous>)
      at propagateSymbols (F:\react\node_modules\@parcel\core\lib\SymbolPropagation.js:52:61)
      at AssetGraphBuilder.build (F:\react\node_modules\@parcel\core\lib\requests\AssetGraphRequest.js:168:62)
      at async Object.run (F:\react\node_modules\@parcel\core\lib\requests\AssetGraphRequest.js:60:37)
      at async RequestTracker.runRequest (F:\react\node_modules\@parcel\core\lib\RequestTracker.js:633:20)
      at async Object.run (F:\react\node_modules\@parcel\core\lib\requests\BundleGraphRequest.js:103:11)
      at async RequestTracker.runRequest (F:\react\node_modules\@parcel\core\lib\RequestTracker.js:633:20)

How can I solve this?

The version of parcel is 2.9.3

I have tried deleting cache and also tried recreating the whole project but nothing happened.

like image 380
Puja Mahapatra Avatar asked Sep 11 '25 04:09

Puja Mahapatra


1 Answers

If you are using parcel then try to delete .parcel-cache folder and then Rerun the build.

like image 195
ronak Avatar answered Sep 15 '25 17:09

ronak