#TS Playground isn't working
23 messages · Page 1 of 1 (latest)
you'll have to share more info. is this after you've written and/or run some code in the playground? what browser? etc
Hi @valid gyro .
After I run any code.
It's con Chrome Version 115.0.5790.170 (Official Build) (arm64)
Changing TS versiosn didn't help
Even clicking on the Run button without code causes that error log
hmm, i'm not able to reproduce in Chrome 115 on macOS
can you try it in an incognito window? maybe you ended up with something weird in your local storage or something?
do you have any plugins enabled? i would guess not since this is incognito, but since activatePlugin shows up in the logs maybe?
this is what i see when opening the playground in an incognito window then clicking "Run"
I tried Firefox and worked good
the only other lead i can see is that localize is in the stack trace; perhaps the difference we're seeing is related to our locales? i'm en-US
otherwise i'd have to step through with a debugger
anyway since you have a workaround maybe you don't care to investigate more
sounds good. if you are able to get more info you could consider filing an issue here: https://github.com/microsoft/TypeScript-Website/issues
huh, i wonder where that comes from. in my instance of Chrome it is a function:
but it does seem like this ought to be stricter: https://github.com/microsoft/TypeScript-Website/blob/5a34236898134a43f4db55e013391e1d0724590b/packages/playground/src/localizeWithFallback.ts#L4
'i' in window ? window.i(key) : fallback
more like
'i' in window && typeof window.i === 'function' ? window.i(key) : fallback