Error with SDK editor
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 50
- Forks
- 32
- PR merge metrics
- No merged PRs in 30d
Description
I've been using the embedProject from the SDK for a long time, but today I encountered the following errors with the same code that worked in previous months:
Console errors:
run?embed=1&theme=light&view=editor:8 Uncaught (in promise)
Error: Could not find source file: 'stackblitz:/.etc/output.ts'.
at g (mts5w-5f2f16260d5ca.js:7:1667344)
at Object.getSyntacticDiagnostics (mts5w-5f2f16260d5ca.js:7:1674772)
at e.getSyntacticDiagnostics (mts5w-5f2f16260d5ca.js:7:4872306)
at e.<anonymous> (mts5w-5f2f16260d5ca.js:7:4913775)
at r.fmr (workerMain.js:13:116573)
at a._handleMessage (workerMain.js:13:65955)
at Object.handleMessage (workerMain.js:13:65622)
at f._handleMessage (workerMain.js:13:63696)
at f.handleMessage (workerMain.js:13:63305)
at a.onmessage (workerMain.js:13:65672)
run?embed=1&theme=light&view=editor:8 Uncaught (in promise)
Error: Could not find source file: 'stackblitz:/.etc/run.ts'.
at g (mts5w-5f2f16260d5ca.js:7:1667344)
at Object.getSyntacticDiagnostics (mts5w-5f2f16260d5ca.js:7:1674772)
at e.getSyntacticDiagnostics (mts5w-5f2f16260d5ca.js:7:4872306)
at e.<anonymous> (mts5w-5f2f16260d5ca.js:7:4913775)
at r.fmr (workerMain.js:13:116573)
at a._handleMessage (workerMain.js:13:65955)
at Object.handleMessage (workerMain.js:13:65622)
at f._handleMessage (workerMain.js:13:63696)
at f.handleMessage (workerMain.js:13:63305)
at a.onmessage (workerMain.js:13:65672)
run?embed=1&theme=light&view=editor:8 Uncaught (in promise)
Error: Could not find source file: 'stackblitz:/.etc/types.d.ts'.
at g (mts5w-5f2f16260d5ca.js:7:1667344)
at Object.getSyntacticDiagnostics (mts5w-5f2f16260d5ca.js:7:1674772)
at e.getSyntacticDiagnostics (mts5w-5f2f16260d5ca.js:7:4872306)
at e.<anonymous> (mts5w-5f2f16260d5ca.js:7:4913775)
at r.fmr (workerMain.js:13:116573)
at a._handleMessage (workerMain.js:13:65955)
at Object.handleMessage (workerMain.js:13:65622)
at f._handleMessage (workerMain.js:13:63696)
at f.handleMessage (workerMain.js:13:63305)
at a.onmessage (workerMain.js:13:65672)
run?embed=1&theme=light&view=editor:8 Uncaught (in promise)
Error: Could not find source file: 'stackblitz:/.etc/globals.d.ts'.
at g (mts5w-5f2f16260d5ca.js:7:1667344)
at Object.getSyntacticDiagnostics (mts5w-5f2f16260d5ca.js:7:1674772)
at e.getSyntacticDiagnostics (mts5w-5f2f16260d5ca.js:7:4872306)
at e.<anonymous> (mts5w-5f2f16260d5ca.js:7:4913775)
at r.fmr (workerMain.js:13:116573)
at a._handleMessage (workerMain.js:13:65955)
at Object.handleMessage (workerMain.js:13:65622)
at f._handleMessage (workerMain.js:13:63696)
at f.handleMessage (workerMain.js:13:63305)
at a.onmessage (workerMain.js:13:65672)
run?embed=1&theme=light&view=editor:8 Uncaught (in promise)
Error: Could not find source file: 'stackblitz:/.etc/output.ts'.
at g (mts5w-5f2f16260d5ca.js:7:1667344)
at Object.getSyntacticDiagnostics (mts5w-5f2f16260d5ca.js:7:1674772)
at e.getSyntacticDiagnostics (mts5w-5f2f16260d5ca.js:7:4872306)
at e.<anonymous> (mts5w-5f2f16260d5ca.js:7:4913775)
at r.fmr (workerMain.js:13:116573)
at a._handleMessage (workerMain.js:13:65955)
at Object.handleMessage (workerMain.js:13:65622)
at f._handleMessage (workerMain.js:13:63696)
at f.handleMessage (workerMain.js:13:63305)
at a.onmessage (workerMain.js:13:65672)
run?embed=1&theme=light&view=editor:8 Uncaught (in promise)
Error: Could not find source file: 'stackblitz:/.etc/run.ts'.
at g (mts5w-5f2f16260d5ca.js:7:1667344)
at Object.getSyntacticDiagnostics (mts5w-5f2f16260d5ca.js:7:1674772)
at e.getSyntacticDiagnostics (mts5w-5f2f16260d5ca.js:7:4872306)
at e.<anonymous> (mts5w-5f2f16260d5ca.js:7:4913775)
at r.fmr (workerMain.js:13:116573)
at a._handleMessage (workerMain.js:13:65955)
at Object.handleMessage (workerMain.js:13:65622)
at f._handleMessage (workerMain.js:13:63696)
at f.handleMessage (workerMain.js:13:63305)
at a.onmessage (workerMain.js:13:65672)
Do you have any ideas on what might be causing this? Have there been any recent changes to the API?
If you need I can provide files which I using in embedProject
Thanks!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the reported embedProject integration and inspect the console errors for the missing stackblitz virtual files: .etc/output.ts, run.ts, types.d.ts, and globals.d.ts. Compare the behavior with the SDK/API version used previously; done means the embedded editor loads without these missing-source-file errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100