Skip to content
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

Ensure that we always emit a diagnostic for JSON5 errors #4864

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from

Conversation

mischnic
Copy link
Member

@mischnic mischnic commented Jul 8, 2020

↪️ Pull Request

Pull JSON5 parsing & creation of a diagnostic with codeframe into utils and use everywhere.

Inspired by #4863

@height
Copy link

height bot commented Jul 8, 2020

Link Height tasks by mentioning a task ID in the pull request title or description, commit messages, or comments.

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

@mischnic
Copy link
Member Author

mischnic commented Jul 8, 2020

@DeMoorJasper This might throw a diagnostic with a codeframe

const pkg = await loadConfig(this.options.inputFS, fileInRoot, [

but errors in a reporter don't go through the CLIReporter / prettifyDiagnostic. How should we handle this? Make the server reporter run prettifyDiagnostic?

@DeMoorJasper
Copy link
Member

@mischnic we can add a try/catch in the server reporter and manually dispatch it to the logger using logger.error(...)?

@parcel-benchmark
Copy link

parcel-benchmark commented Jul 8, 2020

Benchmark Results

Kitchen Sink ✅

Timings

Description Time Difference
Cold 7.37s +196.00ms
Cached 2.59s +46.00ms

Cold Bundles

Bundle Size Difference Time Difference
dist/legacy/parcel.d5807e82.webp 102.94kb +0.00b 265.00ms -63.00ms 🚀
dist/modern/parcel.d5807e82.webp 102.94kb +0.00b 265.00ms -61.00ms 🚀
dist/legacy/index.42516b4a.js 1.10kb +0.00b 1.95s +188.00ms ���️
dist/modern/index.8a1ced31.js 1.10kb +0.00b 1.95s +188.00ms ⚠️
dist/legacy/index.html 701.00b +0.00b 769.00ms -46.00ms 🚀
dist/modern/index.html 701.00b +0.00b 767.00ms -45.00ms 🚀
dist/legacy/index.0e158b6b.css 77.00b +0.00b 1.95s +358.00ms ⚠️

Cached Bundles

Bundle Size Difference Time Difference
dist/legacy/parcel.d5807e82.webp 102.94kb +0.00b 276.00ms -28.00ms 🚀
dist/modern/parcel.d5807e82.webp 102.94kb +0.00b 277.00ms -28.00ms 🚀
dist/legacy/index.42516b4a.js 1.10kb +0.00b 504.00ms -94.00ms 🚀
dist/modern/index.8a1ced31.js 1.10kb +0.00b 503.00ms -95.00ms 🚀
dist/legacy/index.html 701.00b +0.00b 506.00ms -94.00ms 🚀
dist/modern/index.html 701.00b +0.00b 503.00ms -95.00ms 🚀
dist/legacy/index.0e158b6b.css 77.00b +0.00b 504.00ms -95.00ms 🚀
dist/modern/index.e480862d.css 77.00b +0.00b 503.00ms -95.00ms 🚀

React HackerNews ✅

Timings

Description Time Difference
Cold 31.39s -389.00ms
Cached 2.60s -55.00ms

Cold Bundles

Bundle Size Difference Time Difference
dist/logo.24c8bf9e.png 274.00b +0.00b 185.00ms +20.00ms ⚠️

Cached Bundles

Bundle Size Difference Time Difference
dist/index.js 478.15kb +0.00b 259.00ms -119.00ms 🚀
dist/PermalinkedComment.c85d137d.js 4.22kb +0.00b 256.00ms -119.00ms 🚀
dist/UserProfile.30e15baf.js 1.62kb +0.00b 256.00ms -119.00ms 🚀
dist/NotFound.5aa6b041.js 387.00b +0.00b 256.00ms -119.00ms 🚀
dist/logo.24c8bf9e.png 274.00b +0.00b 140.00ms -136.00ms 🚀

AtlasKit Editor ✅

Timings

Description Time Difference
Cold 3.44m -714.00ms
Cached 5.73s +291.00ms ⚠️

Cold Bundles

Bundle Size Difference Time Difference
dist/pdfRenderer.cd742f5e.js 1.11mb +0.00b 1.06m -13.65s 🚀
dist/editorView.ae59b49f.js 585.98kb +0.00b 1.55m -16.63s 🚀
dist/popup.4a66e15e.js 170.62kb +0.00b 40.87s -36.20s 🚀
dist/EmojiPickerComponent.bab709db.js 97.89kb +0.00b 16.09s -1.75s 🚀
dist/Toolbar.33a83ae3.js 92.34kb +0.00b 1.93m +36.02s ⚠️
dist/media-viewer.1d9322e7.js 69.09kb +0.00b 20.24s -3.10s 🚀
dist/card.ce67dc35.js 55.09kb +0.00b 17.20s -2.25s 🚀
dist/card.1007a95f.js 52.86kb +0.00b 1.08m -53.03s 🚀
dist/Modal.e3bd77d0.js 41.40kb +0.00b 8.26s +1.61s ⚠️
dist/component.59edff1f.js 30.78kb +0.00b 5.03s -3.19s 🚀
dist/component.37867f50.js 22.51kb +0.00b 8.25s +1.60s ⚠️
dist/js.48be70a4.js 16.40kb +0.00b 8.25s +1.60s ⚠️
dist/dropzone.c8c03b6a.js 14.36kb +0.00b 1.07m -53.65s 🚀
dist/ui.cee430a3.js 13.97kb +0.00b 17.15s -2.28s 🚀
dist/smartMediaEditor.7ee0079c.js 13.95kb +0.00b 1.09m -13.34s 🚀
dist/workerHasher.65b8a1b7.js 11.78kb +0.00b 17.14s -2.29s 🚀
dist/component.11476a92.js 6.05kb +0.00b 8.80s +1.51s ⚠️
dist/card.4ac5c1b2.js 5.61kb +0.00b 20.23s -3.08s 🚀
dist/media-viewer.bc661bce.js 3.92kb +0.00b 20.24s -3.09s 🚀
dist/index.393afe59.css 3.46kb +0.00b 8.38s -1.21m 🚀
dist/png-chunks-extract.8d15a914.js 3.41kb +0.00b 8.25s +1.60s ⚠️
dist/dropzone.2f1a1e17.js 3.23kb +0.00b 40.83s -9.32s 🚀
dist/Modal.2835744c.js 3.08kb +0.00b 8.25s +1.60s ⚠️
dist/clipboard.0244488f.js 2.75kb +0.00b 1.07m -13.15s 🚀
dist/16.d1b8e6f7.js 2.38kb +0.00b 8.66s +7.37s ⚠️
dist/card.cadccd96.js 2.03kb +0.00b 38.13s -7.76s 🚀
dist/date.d49e64f8.js 1.73kb +0.00b 9.41s +1.19s ⚠️
dist/16.f40c1329.js 1.73kb +0.00b 9.07s +1.50s ⚠️
dist/images.80270b1f.js 1.67kb +0.00b 9.41s -482.00ms 🚀
dist/16.86a8c7d4.js 1.66kb +0.00b 8.80s +1.51s ⚠️
dist/feedback.8b7c7928.js 1.64kb +0.00b 9.89s +940.00ms ⚠️
dist/browser.16c438d4.js 1.61kb +0.00b 1.07m -14.25s 🚀
dist/workerHasher.f66f00c7.js 1.54kb +0.00b 1.09m -52.78s 🚀
dist/list-number.4632b459.js 1.46kb +0.00b 9.55s +1.13s ⚠️
dist/status.cccf04be.js 1.46kb +0.00b 9.80s +1.08s ⚠️
dist/16.cff410ff.js 1.38kb +0.00b 10.28s +2.71s ⚠️
dist/code.af9ca2b3.js 1.38kb +0.00b 9.27s +1.05s ⚠️
dist/16.c1ed07f8.js 1.33kb +0.00b 8.80s +1.51s ⚠️
dist/16.6603f2f3.js 1.33kb +0.00b 10.27s +785.00ms ⚠️
dist/16.a4b392c2.js 1.32kb +0.00b 5.03s +3.74s ⚠️
dist/16.249c644a.js 1.31kb +0.00b 9.27s +1.21s ⚠️
dist/link.d12cc130.js 1.30kb +0.00b 9.55s +1.13s ⚠️
dist/heading6.4c4017db.js 1.30kb +0.00b 9.89s +940.00ms ⚠️
dist/heading3.93606b9c.js 1.29kb +0.00b 9.89s +939.00ms ⚠️
dist/16.ab5c0088.js 1.27kb +0.00b 9.27s +1.21s ⚠️
dist/16.afee1494.js 1.23kb +0.00b 9.07s +1.01s ⚠️
dist/16.e60b4d77.js 1.21kb +0.00b 5.03s +3.74s ⚠️
dist/16.7c7a40c9.js 1.19kb +0.00b 9.07s +1.01s ⚠️
dist/16.06d5a67b.js 1.18kb +0.00b 9.27s +1.05s ⚠️
dist/heading5.dde15cec.js 1.17kb +0.00b 9.89s +940.00ms ⚠️
dist/media-card-analytics-error-boundary.6a25b970.js 1.15kb +0.00b 38.13s -7.80s 🚀
dist/16.2096b9f3.js 1.14kb +0.00b 5.03s +3.74s ⚠️
dist/16.f040d62d.js 1.14kb +0.00b 9.07s +1.50s ⚠️
dist/16.ecf8a702.js 1.13kb +0.00b 8.80s +1.51s ⚠️
dist/16.1b342686.js 1.13kb +0.00b 10.27s +2.70s ⚠️
dist/16.2e7f52c6.js 1.13kb +0.00b 10.62s +3.05s ⚠️
dist/16.da43aa07.js 1.13kb +0.00b 8.80s +1.51s ⚠️
dist/heading2.e219309a.js 1.11kb +0.00b 9.80s +1.08s ⚠️
dist/16.dd07505e.js 1.10kb +0.00b 5.03s +3.74s ⚠️
dist/mention.b1828447.js 1.07kb +0.00b 9.55s +1.13s ⚠️
dist/heading4.5316f6f2.js 1.06kb +0.00b 9.89s +941.00ms ⚠️
dist/16.317b9164.js 1.05kb +0.00b 9.07s +1.01s ⚠️
dist/layout.ac6734f9.js 1.05kb +0.00b 9.55s +1.13s ⚠️
dist/quote.f4e09143.js 1.02kb +0.00b 9.80s +1.08s ⚠️
dist/action.cb287eb0.js 1.00kb +0.00b 9.27s +1.05s ⚠️
dist/decision.91f3af14.js 1010.00b +0.00b 9.41s +1.19s ⚠️
dist/panel-warning.68b04096.js 1008.00b +0.00b 9.68s +1.09s ⚠️
dist/list.057cb664.js 978.00b +0.00b 9.55s +1.13s ⚠️
dist/heading1.fa66b375.js 976.00b +0.00b 9.80s +1.08s ⚠️
dist/panel-error.c4b05f6f.js 906.00b +0.00b 9.68s +1.09s ⚠️
dist/panel.9dbc048e.js 897.00b +0.00b 9.68s +1.09s ⚠️
dist/table.b35545be.js 889.00b +0.00b 9.80s +1.08s ⚠️
dist/panel-success.7eb0809a.js 845.00b +0.00b 9.68s +1.09s ⚠️
dist/panel-note.ec8386b7.js 841.00b +0.00b 9.68s +1.09s ⚠️
dist/media-picker-analytics-error-boundary.553055f6.js 837.00b +0.00b 1.07m -13.13s 🚀
dist/media-card-analytics-error-boundary.964206cc.js 833.00b +0.00b 18.51s -2.51s 🚀
dist/media-card-analytics-error-boundary.57503222.js 833.00b +0.00b 1.09m -52.78s 🚀
dist/media-viewer-analytics-error-boundary.bbe40a02.js 757.00b +0.00b 20.43s -3.15s 🚀
dist/simpleHasher.f8e69464.js 528.00b +0.00b 17.14s -2.28s 🚀
dist/simpleHasher.32d9352e.js 528.00b +0.00b 1.09m -13.47s 🚀
dist/index.html 119.00b +0.00b 2.70s -4.22s 🚀

Cached Bundles

Bundle Size Difference Time Difference
dist/index.8fef7fe2.js 2.73mb +0.00b 637.00ms -46.00ms 🚀
dist/pdfRenderer.cd742f5e.js 1.11mb +2.00b ⚠️ 635.00ms -45.00ms 🚀
dist/editorView.ae59b49f.js 585.98kb +0.00b 634.00ms -38.00ms 🚀
dist/popup.4a66e15e.js 170.62kb +0.00b 634.00ms -38.00ms 🚀
dist/EmojiPickerComponent.bab709db.js 97.89kb +0.00b 635.00ms -46.00ms 🚀
dist/Toolbar.33a83ae3.js 92.34kb +0.00b 634.00ms -38.00ms 🚀
dist/media-viewer.1d9322e7.js 69.09kb +0.00b 635.00ms -45.00ms 🚀
dist/card.ce67dc35.js 55.09kb +0.00b 635.00ms -46.00ms 🚀
dist/card.1007a95f.js 52.86kb +0.00b 634.00ms -38.00ms 🚀
dist/Modal.e3bd77d0.js 41.40kb +0.00b 638.00ms -45.00ms 🚀
dist/component.59edff1f.js 30.78kb +0.00b 638.00ms -45.00ms 🚀
dist/component.37867f50.js 22.51kb +0.00b 637.00ms -45.00ms 🚀
dist/DatePicker.cbe44a9b.js 21.17kb +0.00b 635.00ms -46.00ms 🚀
dist/EmojiPickerComponent.898d8be6.js 18.23kb +0.00b 635.00ms -46.00ms 🚀
dist/js.48be70a4.js 16.40kb +0.00b 638.00ms -45.00ms 🚀
dist/dropzone.c8c03b6a.js 14.36kb +0.00b 635.00ms -37.00ms 🚀
dist/ui.cee430a3.js 13.97kb +0.00b 635.00ms -46.00ms 🚀
dist/smartMediaEditor.7ee0079c.js 13.95kb +0.00b 634.00ms -38.00ms 🚀
dist/workerHasher.65b8a1b7.js 11.78kb +0.00b 635.00ms -46.00ms 🚀
dist/EmojiTypeAheadComponent.9af6e5fc.js 8.67kb +0.00b 635.00ms -46.00ms 🚀
dist/component.11476a92.js 6.05kb +0.00b 637.00ms -45.00ms 🚀
dist/card.4ac5c1b2.js 5.61kb +0.00b 635.00ms -46.00ms 🚀
dist/media-viewer.bc661bce.js 3.92kb +0.00b 635.00ms -45.00ms 🚀
dist/EmojiPickerComponent.624bf3f4.js 3.58kb +0.00b 635.00ms -46.00ms 🚀
dist/index.393afe59.css 3.46kb +0.00b 634.00ms -38.00ms 🚀
dist/png-chunks-extract.8d15a914.js 3.41kb +0.00b 637.00ms -45.00ms 🚀
dist/dropzone.2f1a1e17.js 3.23kb +0.00b 634.00ms -38.00ms 🚀
dist/Modal.2835744c.js 3.08kb +0.00b 638.00ms -45.00ms 🚀
dist/clipboard.0244488f.js 2.75kb +0.00b 634.00ms -38.00ms 🚀
dist/16.d1b8e6f7.js 2.38kb +0.00b 638.00ms -45.00ms 🚀
dist/EmojiUploadComponent.88a444df.js 2.18kb +0.00b 635.00ms -46.00ms 🚀
dist/card.cadccd96.js 2.03kb +0.00b 634.00ms -46.00ms 🚀
dist/ResourcedEmojiComponent.d9a49606.js 2.00kb +0.00b 638.00ms -45.00ms 🚀
dist/date.d49e64f8.js 1.73kb +0.00b 636.00ms -45.00ms 🚀
dist/16.f40c1329.js 1.73kb +0.00b 637.00ms -45.00ms 🚀
dist/images.80270b1f.js 1.67kb +0.00b 637.00ms -45.00ms 🚀
dist/16.86a8c7d4.js 1.66kb +0.00b 637.00ms -45.00ms 🚀
dist/feedback.8b7c7928.js 1.64kb +0.00b 635.00ms -46.00ms 🚀
dist/browser.16c438d4.js 1.61kb +0.00b 635.00ms -37.00ms 🚀
dist/workerHasher.9bb425b1.js 1.54kb +0.00b 635.00ms -46.00ms 🚀
dist/workerHasher.f66f00c7.js 1.54kb +0.00b 634.00ms -38.00ms 🚀
dist/list-number.4632b459.js 1.46kb +0.00b 636.00ms -46.00ms 🚀
dist/status.cccf04be.js 1.46kb +0.00b 636.00ms -46.00ms 🚀
dist/16.cff410ff.js 1.38kb +0.00b 637.00ms -45.00ms 🚀
dist/code.af9ca2b3.js 1.38kb +0.00b 636.00ms -45.00ms 🚀
dist/16.c1ed07f8.js 1.33kb +0.00b 637.00ms -45.00ms 🚀
dist/16.6603f2f3.js 1.33kb +0.00b 637.00ms -45.00ms 🚀
dist/16.a4b392c2.js 1.32kb +0.00b 638.00ms -45.00ms 🚀
dist/16.249c644a.js 1.31kb +0.00b 637.00ms -45.00ms 🚀
dist/link.d12cc130.js 1.30kb +0.00b 636.00ms -46.00ms 🚀
dist/heading6.4c4017db.js 1.30kb +0.00b 635.00ms -46.00ms 🚀
dist/heading3.93606b9c.js 1.29kb +0.00b 636.00ms -46.00ms 🚀
dist/16.ab5c0088.js 1.27kb +0.00b 637.00ms -45.00ms 🚀
dist/emoji.e603e70e.js 1.23kb +0.00b 637.00ms -45.00ms 🚀
dist/16.afee1494.js 1.23kb +0.00b 637.00ms -45.00ms 🚀
dist/16.e60b4d77.js 1.21kb +0.00b 638.00ms -45.00ms 🚀
dist/16.7c7a40c9.js 1.19kb +0.00b 637.00ms -45.00ms 🚀
dist/16.06d5a67b.js 1.18kb +0.00b 637.00ms -45.00ms 🚀
dist/heading5.dde15cec.js 1.17kb +0.00b 635.00ms -46.00ms 🚀
dist/expand.6889aead.js 1.16kb +0.00b 635.00ms -46.00ms 🚀
dist/media-card-analytics-error-boundary.6a25b970.js 1.15kb +0.00b 634.00ms -38.00ms 🚀
dist/16.2096b9f3.js 1.14kb +0.00b 638.00ms -45.00ms 🚀
dist/16.f040d62d.js 1.14kb +0.00b 637.00ms -45.00ms 🚀
dist/16.ecf8a702.js 1.13kb +0.00b 637.00ms -45.00ms 🚀
dist/16.1b342686.js 1.13kb +0.00b 637.00ms -45.00ms 🚀
dist/16.2e7f52c6.js 1.13kb +0.00b 637.00ms -45.00ms 🚀
dist/16.da43aa07.js 1.13kb +0.00b 637.00ms -45.00ms 🚀
dist/heading2.e219309a.js 1.11kb +0.00b 636.00ms -46.00ms 🚀
dist/16.dd07505e.js 1.10kb +0.00b 638.00ms -45.00ms 🚀
dist/component.40194190.js 1.07kb +0.00b 638.00ms -45.00ms 🚀
dist/mention.b1828447.js 1.07kb +0.00b 636.00ms -46.00ms 🚀
dist/heading4.5316f6f2.js 1.06kb +0.00b 635.00ms -47.00ms 🚀
dist/16.317b9164.js 1.05kb +0.00b 637.00ms -45.00ms 🚀
dist/layout.ac6734f9.js 1.05kb +0.00b 637.00ms -45.00ms 🚀
dist/divider.d2be55a1.js 1.03kb +0.00b 636.00ms -45.00ms 🚀
dist/quote.f4e09143.js 1.02kb +0.00b 636.00ms -46.00ms 🚀
dist/action.cb287eb0.js 1.00kb +0.00b 637.00ms -45.00ms 🚀
dist/decision.91f3af14.js 1010.00b +0.00b 636.00ms -45.00ms 🚀
dist/panel-warning.68b04096.js 1008.00b +0.00b 636.00ms -46.00ms 🚀
dist/list.057cb664.js 978.00b +0.00b 636.00ms -46.00ms 🚀
dist/heading1.fa66b375.js 976.00b +0.00b 636.00ms -46.00ms 🚀
dist/panel-error.c4b05f6f.js 906.00b +0.00b 636.00ms -46.00ms 🚀
dist/panel.9dbc048e.js 897.00b +0.00b 636.00ms -46.00ms 🚀
dist/table.b35545be.js 889.00b +0.00b 636.00ms -46.00ms 🚀
dist/panel-success.7eb0809a.js 845.00b +0.00b 636.00ms -46.00ms 🚀
dist/panel-note.ec8386b7.js 841.00b +0.00b 636.00ms -46.00ms 🚀
dist/media-picker-analytics-error-boundary.553055f6.js 837.00b +0.00b 634.00ms -38.00ms 🚀
dist/media-card-analytics-error-boundary.964206cc.js 833.00b +0.00b 635.00ms -46.00ms 🚀
dist/media-card-analytics-error-boundary.57503222.js 833.00b +0.00b 634.00ms -38.00ms 🚀
dist/media-viewer-analytics-error-boundary.bbe40a02.js 757.00b +0.00b 634.00ms -46.00ms 🚀
dist/EmojiPickerComponent.a968dafe.js 535.00b +0.00b 635.00ms -46.00ms 🚀
dist/simpleHasher.f8e69464.js 528.00b +0.00b 635.00ms -46.00ms 🚀
dist/simpleHasher.32d9352e.js 528.00b +0.00b 634.00ms -38.00ms 🚀
dist/index.html 119.00b +0.00b 639.00ms -46.00ms 🚀

Three.js x4 🚨

Timings

Description Time Difference
Cold FAILED -0.00ms
Cached FAILED -0.00ms

Cold Bundles

No bundles found, this is probably a failed build...

Cached Bundles

No bundles found, this is probably a failed build...

Click here to view a detailed benchmark overview.

@mischnic
Copy link
Member Author

mischnic commented Jul 8, 2020

👍
Is there a reason this isn't done automatically in the reporter runner? To prevent infinite loops?

That causes the error to be swallowed by the Built message, because the CLI reporter assumes that all errors can be discarded on buildSuccess...

niklas@nmb:~p/_tests/proxy (master*) $ parcel2 index.html
ℹ️ Server running at http://localhost:1234
✨ Built in 841ms
niklas@nmb:~p/_tests/proxy (master*) $ parcel2 index.html | cat
@parcel/reporter-dev-server: Failed to parse JSON5
/Users/niklas/Documents/_dev/_git/parcel/_tests/proxy/.proxyrc:2:2
  1 | {
> 2 | /   "/api": {
>   |  ^ JSON5: invalid character ' ' at 2:2
  3 |     "target": "http://localhost:5000/",
  4 |     "pathRewrite": {
ℹ️ Server running at http://localhost:1234
Bundling...
✨ Built in 632ms
@DeMoorJasper
Copy link
Member

DeMoorJasper commented Jul 8, 2020

@mischnic I originally wanted to do it but ran into infinite loops pretty quickly so went with what we currently have, we could also detect such an infinite loop and bail out that point though... but seems like a bit more work.

Feel free to suggest an alternative or help me figure out how to detect an infinite loop in that case

@mischnic
Copy link
Member Author

mischnic commented Jul 8, 2020

I would say it's fine as it is. I'll just have to figure out how to make that message persist

@broofa
Copy link

broofa commented Nov 15, 2021

Just dropping a note to emphasize the importance of this, since it seems like it may have stagnated. I'm in the process of porting my codebase to TS, so lots of code churn in between test runs. Somewhere along the way I started getting the error, below.

The one thing conspicuously missing from this error is any mention of the tsconfig.json file that was causing the problem. (You can repro this by doing echo "foo" > tsconfig.json)

Had I not gotten lucky and guessed that tsconfig might be the source of the issue, this could have easily sucked an hour or more of my time trying to manually bisect all of the changes I'd stacked up.


@parcel/transformer-js: JSON5: invalid character 'o' at 1:2

  SyntaxError: JSON5: invalid character 'o' at 1:2
  at syntaxError (/Users/kieffer/projects/npmgraph/node_modules/@parcel/core/node_modules/json5/lib/parse.js:1:12901)
  at invalidChar (/Users/kieffer/projects/npmgraph/node_modules/@parcel/core/node_modules/json5/lib/parse.js:1:12115)
  at literal (/Users/kieffer/projects/npmgraph/node_modules/@parcel/core/node_modules/json5/lib/parse.js:1:8770)
  at Object.value (/Users/kieffer/projects/npmgraph/node_modules/@parcel/core/node_modules/json5/lib/parse.js:1:3148)
  at lex (/Users/kieffer/projects/npmgraph/node_modules/@parcel/core/node_modules/json5/lib/parse.js:1:1618)
  at parse (/Users/kieffer/projects/npmgraph/node_modules/@parcel/core/node_modules/json5/lib/parse.js:1:930)
  at loadConfig (/Users/kieffer/projects/npmgraph/node_modules/@parcel/core/node_modules/@parcel/utils/lib/config.js:124:18)
  at async PublicConfig.getConfigFrom (/Users/kieffer/projects/npmgraph/node_modules/@parcel/core/lib/public/Config.js:156:16)
  at async loadConfig (/Users/kieffer/projects/npmgraph/node_modules/@parcel/transformer-js/lib/JSTransformer.js:208:22)
  at async loadPluginConfig (/Users/kieffer/projects/npmgraph/node_modules/@parcel/core/lib/requests/ConfigRequest.js:65:21)
@mischnic
Copy link
Member Author

mischnic commented Nov 16, 2021

We previously already added a workaround for Babel config which can also be JSON5: #7022, so maybe for tsconfig as well

@mischnic mischnic marked this pull request as ready for review December 6, 2023 15:09
@mischnic mischnic force-pushed the json5-diagnostic branch 3 times, most recently from 0d36b0b to 9c68835 Compare December 6, 2023 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants