遇到这个问题 Block-scoped declarations (let, const, function, class)

使用版本cocoscreator 2.3.4版本,提示
Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

网上查了下,需要更新NODE,但是更新后依然提示这个,咋个办呢。。请教各位大佬

现在老版本也出现这个问题了,是在VSCODE上面运行,或者编辑器上面选择浏览器运行会出这个问题。。

应该是没有加大括号