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 is not supported #588

Open
slishnevsky opened this issue Jan 31, 2024 · 0 comments
Open

require() of ES Module is not supported #588

slishnevsky opened this issue Jan 31, 2024 · 0 comments

Comments

@slishnevsky
Copy link

Hello
When I run this project I get the following error message:

Uncaught Error Error [ERR_REQUIRE_ESM]: require() of ES Module D:\Projects\TwitterMonitoringJavaScript\node_modules\open\index.js from D:\Projects\TwitterMonitoringJavaScript\index.js not supported.
Instead change the require of D:\Projects\TwitterMonitoringJavaScript\node_modules\open\index.js in D:\Projects\TwitterMonitoringJavaScript\index.js to a dynamic import() which is available in all CommonJS modules.

If I change require() to import(), I get this error message:

Uncaught TypeError TypeError: Twit is not a constructor

Please advise.

Thank you.

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

1 participant