Closed BrentBlanckaert closed 1 month ago
When running node --no-warnings --loader ts-node/esm <file_name>.mts
in the root folder or any of its subfolders I face no problems.
Specifically when I run outside of the project it will generate a simular error.
This issues is fixed by using tsx instead. However I still get an error that the module "fs" is unknown.
{"command": "start-context"}
{"description": {"description": "invoertekst-1\n", "format": "console"}, "command": "start-testcase"}
{"message": {"description": "<div class='code'>ts(3,21): error TS2307: Cannot find module 'fs' or its corresponding type declarations.</div>", "format": "html", "permission": "student"}, "command": "append-message"}
{"status": {"enum": "compilation error"}, "command": "escalate-status"}
{"accepted": false, "command": "close-testcase"}
{"command": "close-context"}
This issue has been resolved in #553
PR: #553
When I run the test
test_global_variable
for typescript I get an error talking about the fact that it can't find ts-node:This might be because I don't call ts-node directly but I use node like so:
The weird thing about this is that my imlementation does work when I run the following command where the config file links to the exact same test/solution:
Because of this I suppect that there might be something missing in the flake.nix file.