Error [ERR_REQUIRE_ESM]: Must use import to load ES Module:D:\p\xjx\node_modules\gulp-strip-debug\index.js
require() of ES modules is not supported.
这个错误表示你的代码尝试使用require
来加载一个ECMAScript模块(ES模块),但是require
只能用来加载CommonJS模块。在Node.js中,ECMAScript模块使用import
和export
语法。
版本更新后,就需要ECMAScript模块来加载,回退到CommonJS模块来加载就可以了。