Skip to content

Error: no watcher found for /vscode-global-typings/ts-nul-authority/projects/package.json #57

Closed

Description

@jpdery

So after registering the files so the imports would resolve properly, I registered a tsconfig.json file with the following data:

		fileSystemProvider.registerFile(
			new RegisteredMemoryFile(
				URI.file('tsconfig.json'),
				JSON.stringify({
					"compilerOptions": {
						"baseUrl": "./"
					}
				})
			)
		)

In my case I want to be able to import file without the use of a relative path:

import { Something } from 'Component'

instead of

import { Something } from './Component'

Since this however, I'm getting a bunch of errors in the console that I would like to fix, or at least understand why they are happening:

Image

Is there a service override that I'm missing ?

I've updated the repository here if you need to see the error:

https://github.com/jpdery/monaco-editor-wrapper-extension-host-error

Thanks

Activity

  1. CGNonofr commented on Mar 12, 2025

    @CGNonofr
    Contributor

    Can you please try to reproduce the issue in vscode.dev?

  2. jpdery commented on Mar 12, 2025

    @jpdery
    Author

    I'm not sure I understand what you're asking me.

    One thing I forgot to mention is that I see that vscode is trying to fetch this file, and it fails:

    Fetch failed loading: GET "https://registry.npmjs.org/types-registry/-/types-registry-0.1.711.tgz".

    Image

    Also, the error only show in chrome if i uncheck "Selected Context Only" in the inspector. I'm guessing this not a major issue, but as I'm trying to understand this lib as much as possible, I'd like to have it triggering as few errors as possible.

    Thanks

  3. CGNonofr commented on Mar 12, 2025

    @CGNonofr
    Contributor

    I'm not sure I understand what you're asking me.

    go to vscode.dev, open a project similar to what you're trying to have (your tsconfig.json and the other files)

  4. jpdery commented on Mar 12, 2025

    @jpdery
    Author

    Alright,

    I've created a replica of the project that I'm building inside my own monaco-editor-react. As soon as I load the project, these are the only lines that shows up.

    Image

    Seems to be working fine on vscode.dev

    I've also tried adding "node_module" to the exclude list in tsconfig, but it didn't change anything, at this is very likely me trying random things.

  5. CGNonofr commented on Mar 12, 2025

    @CGNonofr
    Contributor

    It seems to have something to do with you putting all the file at the root of the filesystem, instead of inside a directory

  6. jpdery commented on Mar 14, 2025

    @jpdery
    Author

    The problem seems to go away when putting files in a directory, but I'm getting other errors such as project-wide autocomplete not working. I'm gonna investigate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions