📜  js 版本错误 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:44.453000             🧑  作者: Mango

代码示例1
**ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and 'C:\Users\tempe\Desktop\gulp-start\package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the
'.cjs' file extension.