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.
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?
@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.
Hey!
Any update on this? Last night I was working on a project, closed it and on the next day opened it and this error started to pop up radomly without any changes to the project or workspace/environment.
Creating a new project doesn’t seems to help cuz the same module error pops up, what I have noticed this error is totally random in my case it suddenly started to happen 99% of time now, but I managed to don’t get it twice in a row in a new project, but suddenly it started to happen aswell, seems to be totally random. Changing from cursor to vsc or disabling most of other extensions also doesn’t helps and same goes for re-installing this extension, it’s kinda annoying to see the error. Additionally re-installing project dependencies etc doesn’t fix it aswell, the project is compilling successfully, but in the editor the error is annoying and misleading and can’t figure out why it did happen suddenly from day to day. I have tried to even re-boot my setup just in case and doesn’t helps either.
I’m using 11.1.4 which is the latest if that would be helpful for the team.
I also noticed sometimes that this happens:
I have worked in rescript previously on windows and mac without this error popping up even a single time in vsc/cursor, but suddenly I got it for the first time and can’t get rid off this and seems to be issue with extension and lsp I guess. Would be lovely to fix it since it seems that it hasn’t been fixed yet.
Cursor.
I do have the latest release from marketplace, which is from today. It seems that the latest release broke something for me.
1.66? Can you already get that on Cursor?
Sadly the current version for me is only 1.64…
P.S Thanks for quick reply
EDIT: I see that on vsc I got 1.66 tho
Ye, on vsc on the latest 1.66 I don’t get the module error anylonger from what I see
EDIT: The current solution is to just download the latest release of the rescript extension and install it manually inside cursor. I have installed the latest release and I got no errors with the module, so I can go back to work on my project