Error in Typescript, but the code runs successfully in Cocos, any way to change this default behaviour?
Cocos
MARCH 15, 2025
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 doesnt ignore typescript error.
Let's personalize your content