Updates gulp-mocha from 8.0.0 to 10.0.0 caused the following error when run npm start:
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/dongxuebin/git/OrgChart/node_modules/gulp-mocha/index.js from /Users/dongxuebin/git/OrgChart/gulpfile.js not supported. Instead change the require of index.js in /Users/dongxuebin/git/OrgChart/gulpfile.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (/Users/dongxuebin/git/OrgChart/gulpfile.js:3:13) { code: 'ERR_REQUIRE_ESM' }
Reverts dabeng/OrgChart#727
Updates gulp-mocha from 8.0.0 to 10.0.0 caused the following error when run
npm start
:Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/dongxuebin/git/OrgChart/node_modules/gulp-mocha/index.js from /Users/dongxuebin/git/OrgChart/gulpfile.js not supported. Instead change the require of index.js in /Users/dongxuebin/git/OrgChart/gulpfile.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (/Users/dongxuebin/git/OrgChart/gulpfile.js:3:13) { code: 'ERR_REQUIRE_ESM' }