nodejs报错:SyntaxError: Cannot use import statement outside a module 2020/11/16 前端技术 0 Comments 2,122 Views 17 Times 首先来看一下报错的源码,大概意思是nodejs不支持import语法,如果要支持,需要babel来支持。 SyntaxError: Cannot use import statement outside a module?[90m at M…