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

Playground: "https://typescript.azureedge.net/cdn/5.0.2/monaco/min/vs" throws error in tsWorker.js #2753

Closed
VladSez opened this issue Mar 17, 2023 · 1 comment
Labels
Playground Issues that affect the Playground

Comments

@VladSez
Copy link

VladSez commented Mar 17, 2023

I am following the example from TypeScript Sandbox package

Seems like error only occurs in CodeSandbox environment, because I was able to setup a sandbox(using example above) with TS 5.0.2 and Next.js in another project locally

And with the latest TypeScript version vs: "https://typescript.azureedge.net/cdn/5.0.2/monaco/min/vs" in

require.config({
    paths: {
      // this url works
      // vs: "https://typescript.azureedge.net/cdn/4.9.5/monaco/min/vs",

      // this url does not work
      vs: "https://typescript.azureedge.net/cdn/5.0.2/monaco/min/vs",

      // vs: 'https://unpkg.com/@typescript-deploys/monaco-editor@4.0.5/min/vs',
      sandbox: "https://www.typescriptlang.org/js/sandbox"
    },
    // This is something you need for monaco to work
    ignoreDuplicateModules: ["vs/editor/editor.main"]
  });

it throws an error in tsWorker.js:

image

Previous versions are working as expected

Repro: Please, open browser console and check logs https://codesandbox.io/s/typescript-playyground-with-twoslash-queries-forked-rj97nj?file=/src/index.ts

Expected behavior:

Should work as expected

Actual behavior:

Error in tsWorker.js

image

@VladSez VladSez added the Playground Issues that affect the Playground label Mar 17, 2023
@typescript-bot
Copy link
Collaborator

Hello! As per #2804, we are automatically closing all open issues. Please see #2804 for a description of what issues and PRs can be accepted going forward.

@typescript-bot typescript-bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Playground Issues that affect the Playground
Projects
None yet
Development

No branches or pull requests

2 participants