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

require() of ES Module not supported #14

Open
kaptinlin opened this issue Apr 23, 2023 · 1 comment
Open

require() of ES Module not supported #14

kaptinlin opened this issue Apr 23, 2023 · 1 comment

Comments

@kaptinlin
Copy link

Error: require() of ES Module /app/available_modules/1682263572000/rand-user-agent/dist/index.js from /app/index.js not supported.
Instead change the require of /app/available_modules/1682263572000/rand-user-agent/dist/index.js in /app/index.js to a dynamic import() which is available in all CommonJS modules.

@RalucaPenciuc
Copy link

not an issue, this package is now pure ESM, as stated here: https://github.com/WebScrapingAPI/rand-user-agent#installation.

you can find here the official docs: https://www.typescriptlang.org/docs/handbook/esm-node.html to learn how to adjust your imports

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