Why do I get "module or file RescriptCore can't be found" error on VSCode?

I’m new to Rescript, so I apologize if this is obvious. This shows up at the beginning of almost every file. I have done both things the error message suggests (except I’m using rescript.json). The code compiles fine, just seeing this on the editor is a bit annoying.

Did you try restarting the vscode extension?

FYI we’ll be looking into this, there has been similar reports recently.

2 Likes

Not restarting the extension specifically, but I’ve tried restarting vscode; it happens every time I open vscode. Strangely, it doesn’t happen in every file, not sure why it happens to some and not others.

What if you try rescript@12.0.0-alpha.8?

Any chance you could create a reproduction repo, noting which files it happens in vs where it doesn’t happen?

1 Like

@zth I too have noticed a lot of error messages in editor, usually something random at the top of the file. Since about a weekish ago. I thought it was something to do with rewatch and using resi files, though I haven’t had the change to really look into it yet

Are there errors output anywhere in vscode I can try to collect that would be of use debugging this? I see it several times a day

@zth , I don’t have the code with me, but I was following the snake game with Rescript tutorial on youtube. This is the corresponding repository from the creator: GitHub - Exegetech/snake-rescript: Snake game in ReScript

Thanks! Will look into it soon.