-
Notifications
You must be signed in to change notification settings - Fork 60
Description
To get this plugin to work on my ubuntu linux machine, I needed to run pnpm add -D @rescript/[email protected]
manually. Once I did that v1.64 of the plugin worked perfectly.

I have no problem running Rescript so I'm not sure what the issue is. Maybe it is also a PNPM issue where the symlink is added incorrectly unless it is explicitly installed.
I haven't dug deeper and unfortunately I need to move on with work so I hope this is enough information to help solve the issue for others.
It may also be an issue with the rescript package itself and not be an issue with the plugin. However, everything was working completely fine with the Rescript CLI which makes me think it is something to do with the VS Code plugin.
Without this package explicitly added to my package.json I get the following error:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/jasoons/Documents/code/enviodev/hack/query-builder/node_modules/@rescript/linux-x64/bin.js' imported from /home/jasoons/.cursor/extensions/chenglou92.rescript-vscode-1.64.0-universal/server/out/cli.js
at finalizeResolution (node:internal/modules/esm/resolve:283:11)
at moduleResolve (node:internal/modules/esm/resolve:959:10)
at defaultResolve (node:internal/modules/esm/resolve:1195:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:642:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:591:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:574:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:236:38)
at ModuleLoader.import (node:internal/modules/esm/loader:539:34)
at defaultImportModuleDynamicallyForScript (node:internal/modules/esm/utils:228:31)
at importModuleDynamicallyCallback (node:internal/modules/esm/utils:250:12) {
code: 'ERR_MODULE_NOT_FOUND',
url: 'file:///home/jasoons/Documents/code/enviodev/hack/query-builder/node_modules/@rescript/linux-x64/bin.js'
}
Node.js v20.19.1