-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Expected content key 0788422aa91f880f to exist
when renaming .tsx
-> .ts
#6528
Comments
Error: Expected content key 0788422aa91f880f to exist
when renaming .tsx
-> .ts
Error: Expected content key 0788422aa91f880f to exist
when renaming .tsx
-> .ts
Hi. I am getting a similar issue since 2.8.3. Downgrading to 2.8.2 makes the build work again. Here are my dependencies: "devDependencies": {
"@fortawesome/fontawesome-svg-core": "6.2.1",
"@fortawesome/free-regular-svg-icons": "6.2.1",
"@fortawesome/free-solid-svg-icons": "6.2.1",
"@fortawesome/vue-fontawesome": "3.0.0-5",
"@parcel/config-webextension": "2.8.2",
"@parcel/core": "2.8.2",
"@parcel/optimizer-data-url": "2.8.2",
"@parcel/transformer-inline-string": "2.8.2",
"@parcel/transformer-typescript-tsc": "2.8.2",
"@parcel/transformer-vue": "2.8.2",
"@peertube/peertube-types": "5.0.1",
"@types/download": "8.0.2",
"@types/lodash.defaults": "4.2.7",
"@types/lodash.get": "4.4.7",
"@types/lodash.set": "^4.3.7",
"@types/webextension-polyfill": "0.10.0",
"@typescript-eslint/eslint-plugin": "5.48.2",
"@typescript-eslint/parser": "5.48.2",
"@vue/eslint-config-prettier": "^7.0.0",
"@vue/eslint-config-typescript": "11.0.2",
"bestzip": "2.2.1",
"eslint": "8.32.0",
"eslint-config-standard-with-typescript": "31.0.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-n": "^15.6.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-vue": "9.9.0",
"lodash.defaults": "4.2.0",
"lodash.get": "4.4.2",
"lodash.set": "4.3.2",
"parcel": "2.8.2",
"prettier": "2.8.3",
"prettier-eslint": "15.0.1",
"rimraf": "4.1.1",
"ts-results": "^3.3.0",
"typescript": "4.9.4",
"vue": "3.2.45",
"vue-eslint-parser": "9.1.0",
"vue-tsc": "1.0.24",
"vue3-popper": "1.5.0",
"webextension-polyfill": "0.10.0"
} and the command used to build: "watch": "parcel manifest.json --config @parcel/config-webextension --target webext-dev" The stack trace: Server running at http://localhost:1234
π¨ Build failed.
@parcel/bundler-default: Expected content key ce02aa4519cef13e to exist
Error: Expected content key ce02aa4519cef13e to exist
at nullthrows (/home/booteille/Dev/peertube-companion/node_modules/nullthrows/nullthrows.js:7:15)
at ContentGraph.getNodeIdByContentKey
(/home/booteille/Dev/peertube-companion/node_modules/@parcel/graph/lib/ContentGraph.js:81:38)
at getReachableBundleRoots
(/home/booteille/Dev/peertube-companion/node_modules/@parcel/bundler-default/lib/DefaultBundler.js:1161:44)
at createIdealGraph
(/home/booteille/Dev/peertube-companion/node_modules/@parcel/bundler-default/lib/DefaultBundler.js:728:21)
at Object.bundle
(/home/booteille/Dev/peertube-companion/node_modules/@parcel/bundler-default/lib/DefaultBundler.js:122:19)
at BundlerRunner.bundle
(/home/booteille/Dev/peertube-companion/node_modules/@parcel/core/lib/requests/BundleGraphRequest.js:288:23)
at async Object.run
(/home/booteille/Dev/peertube-companion/node_modules/@parcel/core/lib/requests/BundleGraphRequest.js:156:17)
at async RequestTracker.runRequest
(/home/booteille/Dev/peertube-companion/node_modules/@parcel/core/lib/RequestTracker.js:756:20)
at async Object.run
(/home/booteille/Dev/peertube-companion/node_modules/@parcel/core/lib/requests/ParcelBuildRequest.js:56:7)
at async RequestTracker.runRequest
(/home/booteille/Dev/peertube-companion/node_modules/@parcel/core/lib/RequestTracker.js:756:20) Yarn version 1.22.19 on Linux Pop!_OS 22.04 LTS |
Having the same issue after upgrading to 2.8.3 from 2.8.2. Large project that's a mix of javascript and typescript, builds fine on 2.8.2. We do have some typescript, but there was no renaming involved as in OP 's case. The only change for us were the 2.8.2 to 2.8.3 dependency updates:
Dev dependencies:
Versions
|
Also getting this randomly now without renaming files, since starting to use yarn workspaces. Example error:
Unsure if creating another reproduction would help getting this fixed? |
I'm running into a similar issue #8874. Only happens for me when I run |
Hi @mischnic do you know if anyone is working on this bug? |
This might help https://stackoverflow.com/a/77391012/2377343 |
Nice, that was actually it for me. The |
π bug report
parcel serve
crashes when renaming a file from .ts to .tsx to .tsπ Configuration (.babelrc, package.json, cli command)
Please see attached .zip
π€ Expected Behavior
No crash
π― Current Behavior
Crash
π Possible Solution
Fix crash
π¦ Context
Was renaming a file because I wanted to use jsx in it but then I chickened out.
π» Code Sample
Download this:
parcel-rename-crash.zip
yarn install
yarn serve
cd src
mv stuff.ts stuff.tsx
mv stuff.tsx stuff.ts
π Your Environment
The text was updated successfully, but these errors were encountered: