Closed aboisvert closed 3 months ago
I have a JS project that I'd like to develop using the vscode-nim extension.
When I load the project, I get numerous errors when I import karax modules such as,
[{ "resource": "/home/boisvert/.choosenim/toolchains/nim-2.0.2/lib/js/dom.nim", "owner": "nim", "severity": 8, "message": "This module only works on the JavaScript platform", "startLineNumber": 45, "startColumn": 10, "endLineNumber": 45, "endColumn": 10 }]
I tried setting nim.buildCommand' in mysettings.json`:
nim.buildCommand' in my
"nim.buildCommand": "js",
but that didn't help.
What's the right way to tell the extension that it should use the JS backend when compiling/linting?
--backend:js in a config.nims in the root of your project
--backend:js
config.nims
I have a JS project that I'd like to develop using the vscode-nim extension.
When I load the project, I get numerous errors when I import karax modules such as,
I tried setting
nim.buildCommand' in my
settings.json`:but that didn't help.
What's the right way to tell the extension that it should use the JS backend when compiling/linting?