Open danieltroger opened 1 year ago
Still reproducible, download, extract, yarn && yarn parcel build
Looks like say there's a encodeJSONKeyComponent
missing in the string concatenation you mentioned:
Hi, is this done yet? I'd like to contribute to this!
Hi @mischnic, just to clarify, you're saying the above issue (where a target name contains slash) should not give an error and instead we should wrap the targetName
with encodeJSONKeyComponent
?
I've created a PR for this!
A valid target would look like this in package.json:
When an accident is made using string replace and it looks like this instead:
Parcel fails with the quite unhelpful error message:
Expected behavior: better error message
I figured it out by adding console.log statements to parcel. in EntryRequest in @parcel/core keyPath is built like this
which became very weird due to my accidental added slashes.
Sorry for not filling out the issue template I wanted to be quick, lmk if it's too terrible