You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Encoded an eslint.org/play URL that contains { "parserOptions": { "sourceType": "script" } } under options
Visited that URL -> the page does successfully render
Clicked Versioning and Config in the right sidebar
What did you expect to happen?
If the user has encoded a parserOptions object that doesn't contain ecmaFeautures, the sidebar should still render properly when the config section is clicked.
What actually happened?
On section click, the page goes blank (except for the header) as a result of this crash:
playground.js:2 Uncaught TypeError: Cannot read properties of undefined (reading 'jsx')
at playground.js:2:2175396
at Array.filter (<anonymous>)
at jv (playground.js:2:2175341)
at wo (playground.js:2:131194)
at ka (playground.js:2:142809)
at Cl (playground.js:2:189016)
at bu (playground.js:2:177131)
at Eu (playground.js:2:177059)
at yu (playground.js:2:176922)
at ou (playground.js:2:173729)
Participation
I am willing to submit a pull request for this issue.
I don't think this classifies as a bug. The playground was designed to only accept configurations that it generated itself because that was the only use case. Anyway, we can support passing partial configs if that's useful for eslint/eslint#17306.
URL(s)
https://eslint.org/play/#eyJvcHRpb25zIjp7InBhcnNlck9wdGlvbnMiOnsic291cmNlVHlwZSI6InNjcmlwdCJ9fSwidGV4dCI6Ii8qZXNsaW50IG5vLWltcGxpY2l0LWdsb2JhbHM6IFwiZXJyb3JcIiovXG5cbnZhciBmb28gPSAxO1xuXG5mdW5jdGlvbiBiYXIoKSB7fVxuIn0=
What did you do?
{ "parserOptions": { "sourceType": "script" } }
underoptions
What did you expect to happen?
If the user has encoded a
parserOptions
object that doesn't containecmaFeautures
, the sidebar should still render properly when the config section is clicked.What actually happened?
On section click, the page goes blank (except for the header) as a result of this crash:
Participation
Additional comments
Context: eslint/eslint#17306
The text was updated successfully, but these errors were encountered: