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

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module (Node.js v15.14.0) #33

Closed
salisbury-espinosa opened this issue Oct 24, 2021 · 1 comment

Comments

@salisbury-espinosa
Copy link

$ node
Welcome to Node.js v15.14.0.
Type ".help" for more information.

const pMemoize = require('p-memoize');

Uncaught:
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: node_modules/p-memoize/dist/index.js

@sindresorhus
Copy link
Owner

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