Skip to content

Could not find source file: 'inmemory://model/2' #1840

@ErkoKnoll

Description

@ErkoKnoll

I recently upgraded from 0.18.1 to 0.20.0. monacoEditor.editor.IEditorConstructionOptions no longer seem to accept model as part of its parameters. So I'm now setting the model after editor has been created by using setModel, but after doing it the editor throws:

Error: Could not find source file: 'inmemory://model/2'.
    at getValidSourceFile (ts.worker.js:210193)
    at Object.getCodeFixesAtPosition (ts.worker.js:210981)
    at TypeScriptWorker.getCodeFixesAtPosition (ts.worker.js:214090)
    at EditorSimpleWorker.fmr (ts.worker.js:11085)
    at SimpleWorkerServer._handleMessage (ts.worker.js:7623)
    at Object.handleMessage (ts.worker.js:7604)
    at SimpleWorkerProtocol._handleMessage (ts.worker.js:7441)
    at SimpleWorkerProtocol.handleMessage (ts.worker.js:7403)
    at SimpleWorkerServer.onmessage (ts.worker.js:7610)
    at self.onmessage (ts.worker.js:12722)
    at :3000/static/js/3.chunk.js:90789

It does not seem to screw anything up, but is there a way to tell the model not to look for source maps, or how should I be able to specify source maps for the model in the first place?

Metadata

Metadata

Assignees

No one assigned

    Labels

    info-neededIssue requires more information from poster

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions