Last 12 weeks · 0 commits
4 of 6 standards met
I am getting "Error [ERR_REQUIRE_ESM]: require() of ES Module" error when I do the following in my gulpfile.js, following older tutorials online: I suspect the error is occurring because vinyl paths is now an ESM module. Reading online, I seem to have three options: Switch the project to an ESM module, dynamically import an ESM module into a CommonJS module using let, await, import, or use an older version of the plugin. Besides downgrading the vinyl-plugin , I am using, I have absolutely no idea how to do the other options--what does using an ESM module look like in gulpfile.js? Is there a way, I can use vinyl-paths using a somewhat similar format to the above, so I can use my other gulp plugins in my gulpfile.js?
Repository: sindresorhus/vinyl-paths. Description: Get the file paths in a `vinyl` stream Stars: 61, Forks: 5. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v5.0.0 (3y ago). Open PRs: 0, open issues: 0. Last activity: 3y ago. Community health: 71%. Top contributors: sindresorhus, jonatanlinden, Richienb, wbinnssmith.