
反混淆
文章平均质量分 74
大聪明_花
小小大聪明,不值一提
展开
-
【完美解决】ES6语法导入报错 SyntaxError: Cannot use import statement outside a module
(node:23888) Warning: To load an ES module, set “type”: “module” in the package.json or use the .mjs extension.在 Node.js 环境中默认使用的是 CommonJS 规范。import 是 ES6 中的模块化写法,CommonJS 模块与 ES6 模块不兼容。意思是在package.json文件中配置 “type”: “module” 就行。原创 2024-04-05 12:43:58 · 1106 阅读 · 1 评论 -
【完美解决】@babel/xxx :TypeError: traverse is not a function 和 TypeError: generateis not a function
@babel/traverse 官方示例运行报错:TypeError: traverse is not a function。@babel/generate官方示例运行报错:TypeError: generateis not a function@babel 反混淆练习时报错原创 2024-04-05 12:39:56 · 1588 阅读 · 1 评论