Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

require() of ES Module at Starting Process #154

@Bigmac8888

Description

@Bigmac8888

Hey Colin,

I have installed the latest version of your plugin for my Homebridge. After I set the Credentials of my Blink Account in the Plugin and restart the Bridge this Eror popped out in the Log.

"[7/21/2024, 10:06:10 AM] [Blink] Init Blink
[7/21/2024, 10:06:10 AM] [Blink] Error [ERR_REQUIRE_ESM]: require() of ES Module /var/lib/homebridge/node_modules/@crb2nu/homebridge-blink-cameras/node_modules/@adobe/fetch/src/index.js from /var/lib/homebridge/node_modules/@crb2nu/homebridge-blink-cameras/src/blink-api.js not supported.
Instead change the require of index.js in /var/lib/homebridge/node_modules/@crb2nu/homebridge-blink-cameras/src/blink-api.js to a dynamic import() which is available in all CommonJS modules.
at Object. (/var/lib/homebridge/node_modules/@crb2nu/homebridge-blink-cameras/src/blink-api.js:3:24) {
code: 'ERR_REQUIRE_ESM'
}
[7/21/2024, 10:06:10 AM] [Blink] NOTE: Blink devices in HomeKit will not be responsive."

Whats the meaning of the Error and how can I fix it, or do you want to fix it for the next version.

BR
Jérôme

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