There is an error assigning string to foo:
VS Code can recognize this error.
But the code runs successfully in Cocos (with no error).
Contrary to Cocos, if there is error in Typescript, script run by “ts-node”( from “node.js” ) will stop with error.
Is there any way to change the behaviour in Cocos ? I would like it to be something like ts-node, which doesn’t ignore typescript error.
Cocos Version: 3.8.1