Open ted-palmer opened 1 year ago
I'm also experiencing this issue, but it's also on my build
. At first I noticed it when building my Docker image but not locally. After clearing my package-lock and installing the latest version it began happening locally as well.
I've also tried 2.8.2 and same result.
When I tried to revert back to the version I was using, 2.7.0, I started getting a new error:
@parcel/workers: Expected constructor 2.7.0:BundleGraph to be registered with serializer to deserialize
I've yet to find a way around this issue.
EDIT:
Just now found a way around it. I reverted to 2.7.0 again and found where the error in reverting before was. I hadn't explicitly installed @parcel/core
at 2.7.0. Adding that to the dependencies, matching parcel
and @parcel/transformer-sass
my build functions again.
Update: I also hadn't explicitly installed @parcel/core
, however, that didn't fix the issue for me. After a lot of testing I discovered that adding the --no-hmr
parameter to parcel watch
made the errors go away
For me it worked when I deleted the .parcel-cache and dist folders completely in the root directory and did the rebuild.
delete the .parcel-cache folder, then try running command again, it'll work.
error: Expected content key de1e4a02ec63c4eb to exist This error occurs in parcel version 2.9.2 . then I downgrade the parcel version into 2.7.0 and then error resolved .
delete the .parcel-cache folder, then try running command again, it'll work.
This fixed it for me.
delete the .parcel-cache folder, then try running command again, it'll work.
This worked for me
Same error occurred to me in parcel version - 2.9.3 Solution that worked for me - clear the parcel cache (rm -rf .parcel-cache) and run the application again.
then
this worked for me
delete the .parcel-cache folder, then try running command again, it'll work.
This worked for me . Thank you
I just deleted the .parcel-cache and dist folders completely from the root directory and rebuild the applicate, it did worked for me
error: Expected content key de1e4a02ec63c4eb to exist This error occurs in parcel version 2.9.2 . then I downgrade the parcel version into 2.7.0 and then error resolved .
this helped me..thanks
Thanks, I deleted both the dist and cache, and now it works. It accidentally deleted the dist first so you probably won't have to. But thanks for the solution. I haven't worked with a dist before so appreciate your post.
delete the .parcel-cache folder, then try running command again, it'll work.
its workingβ¨
Error: Expected content key de1e4a02ec63c4eb to exist
Error: Expected content key de1e4a02ec63c4eb to exist
at nullthrows (C:\Users\Ansari Rashid\Desktop\starter\node_modules\nullthrows\nullthrows.js:7:15)
at AssetGraph.getNodeIdByContentKey (C:\Users\Ansari
Rashid\Desktop\starter\node_modules\@parcel\graph\lib\ContentGraph.js:67:38)
at C:\Users\Ansari Rashid\Desktop\starter\node_modules\@parcel\core\lib\SymbolPropagation.js:52:82
at Array.map (
at async RequestTracker.runRequest (C:\Users\Ansari
Rashid\Desktop\starter\node_modules\@parcel\core\lib\RequestTracker.js:633:20)
at async Object.run (C:\Users\Ansari Rashid\Desktop\starter\node_modules\@parcel\core\lib\requests\BundleGraphRequest.js:103:11)
at async RequestTracker.runRequest (C:\Users\Ansari
Rashid\Desktop\starter\node_modules\@parcel\core\lib\RequestTracker.js:633:20)
This worked for me. Thank you
Error: Expected content key de1e4a02ec63c4eb to exist
Error: Expected content key de1e4a02ec63c4eb to exist at nullthrows (C:\Users\Ansari Rashid\Desktop\starter\node_modules\nullthrows\nullthrows.js:7:15) at AssetGraph.getNodeIdByContentKey (C:\Users\Ansari Rashid\Desktop\starter\node_modules@parcel\graph\lib\ContentGraph.js:67:38) at C:\Users\Ansari Rashid\Desktop\starter\node_modules@parcel\core\lib\SymbolPropagation.js:52:82 at Array.map () at propagateSymbols (C:\Users\Ansari Rashid\Desktop\starter\node_modules@parcel\core\lib\SymbolPropagation.js:52:61) at AssetGraphBuilder.build (C:\Users\Ansari Rashid\Desktop\starter\node_modules@parcel\core\lib\requests\AssetGraphRequest.js:168:62) at async Object.run (C:\Users\Ansari Rashid\Desktop\starter\node_modules@parcel\core\lib\requests\AssetGraphRequest.js:60:37) at async RequestTracker.runRequest (C:\Users\Ansari Rashid\Desktop\starter\node_modules@parcel\core\lib\RequestTracker.js:633:20) at async Object.run (C:\Users\Ansari Rashid\Desktop\starter\node_modules@parcel\core\lib\requests\BundleGraphRequest.js:103:11) at async RequestTracker.runRequest (C:\Users\Ansari Rashid\Desktop\starter\node_modules@parcel\core\lib\RequestTracker.js:633:20)
I am getting the same error
delete the .parcel-cache folder, then try running command again, it'll work.
This worked for me too. Thank you
Deleting .parcel-cache works for me until I change the HTML node structure in any way, then the problem returns. I'm changing elements all the time so this fix isn't really valid for me. Anyone else got this?
delete the .parcel-cache folder, then try running command again, it'll work.
It work for me .
delete the .parcel-cache folder, then try running command again, it'll work.
Yeah,after deleting .parcel-cache folder and run command again .It's working for me
Nice
Right, deleting of .parcel-cache
did a trick.
If you are using monorepos pls delete a top-level .parcel-cache
, not into /packages/your-package/
.
delete the .parcel-cache folder, then try running command again, it'll work.
Yep, this did it for me as well!
For me it worked when I deleted the .parcel-cache and dist folders completely in the root directory and did the rebuild.
Worked for me, using parcel version 2.10.3
folder
yes deleting .parcel-cache worked for me
after closing the server and
then deleting the .parcel-cache file and
again executing npx parcel
solved the problem!
delete the .parcel-cache folder, then try running command again, it'll work.
Stopping the server running then doing this worked for me.
Deleting .parcel-cache works for me until I change the HTML node structure in any way, then the problem returns. I'm changing elements all the time so this fix isn't really valid for me. Anyone else got this?
This is what I'm experiencing too. I can edit one of my JavaScript files over and over without this error occurring. I can even edit inside a <script>
tag inside a .html
document without issue. As soon as I start editing my HTML markup I get this error and have to restart parcel.
delete parcel-cache and dist folder then restart your using npx parcel index.html
It's been well over a year since this was reported, and there is still no real solution except the half-assed workaround repeatedly mentioned in the previous ~25 useless comments (kudos on that guys /s).
using "rm -rf .parcel-cache" command to remove the "parcel cache" worked for me
π bug report
When running
parcel watch 'packages/*' --no-cache
I'm getting the following errors:Running
parcel build 'packages/*' --no-cache
builds fine with no errors.Downgrading to parcel 2.8.2 didn't fix this, as suggested in #8787
Deleting
.parcel-cache
also didn't work.π Configuration (.babelrc, package.json, cli command)
π€ Expected Behavior
Running
parcel watch 'packages/*' --no-cache
should build with no errors, just asparcel build 'packages/*' --no-cache
does.π― Current Behavior
Seeing the errors mentioned above.
π Possible Solution
Update: adding the
--no-hmr
parameter toparcel watch
made the errors go awayπ¦ Context
π» Code Sample
Here is the repo where I am running into this issue: https://github.com/reservoirprotocol/reservoir-kit/tree/ted/upgrade-typescript-solution
π Your Environment