dabeng / OrgChart

It's a simple and direct organization chart plugin. Anytime you want a tree-like chart, you can turn to OrgChart.
MIT License
2.83k stars 767 forks source link

Revert "Bump nanoid and gulp-mocha" #728

Closed dabeng closed 7 months ago

dabeng commented 7 months ago

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' }