Skip to content

require() of ES Module is not supported #588

Description

@slishnevsky

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions