Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please support require at 4.0 #11

Closed
baryon opened this issue Aug 18, 2021 · 1 comment
Closed

Please support require at 4.0 #11

baryon opened this issue Aug 18, 2021 · 1 comment

Comments

@baryon
Copy link

baryon commented Aug 18, 2021

Use
const vinylPaths = require('vinyl-paths')
got

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: xxx/node_modules/vinyl-paths/index.js
require() of ES modules is not supported.
@sindresorhus
Copy link
Owner

https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants