You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: