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

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

Open
jpdery opened this issue Mar 12, 2025 · 5 comments

Comments

@jpdery
Copy link

jpdery commented Mar 12, 2025

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

@CGNonofr
Copy link
Contributor

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

@jpdery
Copy link
Author

jpdery commented Mar 12, 2025

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

@CGNonofr
Copy link
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)

@jpdery
Copy link
Author

jpdery commented Mar 12, 2025

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.

@CGNonofr
Copy link
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants