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

[Bug]: Playground not loading #4674

Closed
4 tasks done
rahulpsd18 opened this issue Oct 10, 2024 · 1 comment · Fixed by #4678 or #4681
Closed
4 tasks done

[Bug]: Playground not loading #4674

rahulpsd18 opened this issue Oct 10, 2024 · 1 comment · Fixed by #4678 or #4681
Assignees
Labels
bug Something isn't working needs-area

Comments

@rahulpsd18
Copy link

Describe the bug

Typespec Playground is stuck at Loading libraries... spinner state.

Browser console shows:

Uncaught (in promise) Error: Unable to resolve specifier '@typespec/streams' imported from https://typespec.io/playground
    at ke (es-module-shims.js:1:9614)
    at de (es-module-shims.js:1:9137)
    at pe (es-module-shims.js:1:9451)
    at async me (es-module-shims.js:1:9496)
    at async g (35983.b1d0d1dc.js:8:392090)
    at async 35983.b1d0d1dc.js:8:387747

Tested in chrome and firefox (both latest versions).

Reproduction

https://typespec.io/playground

Checklist

@rahulpsd18 rahulpsd18 added the bug Something isn't working label Oct 10, 2024
github-merge-queue bot pushed a commit that referenced this issue Oct 10, 2024
Fixes #4674

Co-authored-by: Christopher Radek <Christopher.Radek@microsoft.com>
github-merge-queue bot pushed a commit that referenced this issue Oct 10, 2024
#4678 ended up not working on account of the imports being incorrect.
Unfortunately updating to use the dist directory still causes problems
with ESM resolution (it attempts to import monaco editor since the
playground website is bundled into a single file), so reverting to the
hard-coded list for now to fix #4674

---------

Co-authored-by: Christopher Radek <Christopher.Radek@microsoft.com>
@chrisradek
Copy link
Member

@rahulpsd18 Thanks for reporting this issue! It should be back up and running now!

swatkatz pushed a commit to swatkatz/typespec that referenced this issue Nov 5, 2024
Fixes microsoft#4674

Co-authored-by: Christopher Radek <Christopher.Radek@microsoft.com>
swatkatz pushed a commit to swatkatz/typespec that referenced this issue Nov 5, 2024
microsoft#4678 ended up not working on account of the imports being incorrect.
Unfortunately updating to use the dist directory still causes problems
with ESM resolution (it attempts to import monaco editor since the
playground website is bundled into a single file), so reverting to the
hard-coded list for now to fix microsoft#4674

---------

Co-authored-by: Christopher Radek <Christopher.Radek@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-area
Projects
None yet
2 participants