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

const updateNotifier = require('update-notifier'); #20

Closed
ghost opened this issue Aug 20, 2022 · 2 comments · Fixed by #21
Closed

const updateNotifier = require('update-notifier'); #20

ghost opened this issue Aug 20, 2022 · 2 comments · Fixed by #21
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Aug 20, 2022

Hi,

When updated infoooze to 1.2.0 I have this error:

/usr/local/lib/node_modules/infoooze/src/home.js:4
const updateNotifier = require('update-notifier');
                       ^

Error [ERR_REQUIRE_ESM]: require() of ES Module /usr/local/lib/node_modules/infoooze/node_modules/update-notifier/index.js from /usr/local/lib/node_modules/infoooze/src/home.js not supported.
Instead change the require of index.js in /usr/local/lib/node_modules/infoooze/src/home.js to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (/usr/local/lib/node_modules/infoooze/src/home.js:4:24)
    at Object.<anonymous> (/usr/local/lib/node_modules/infoooze/index.js:5:26) {
  code: 'ERR_REQUIRE_ESM'
}

Any ideas ?

@ghost ghost added the bug Something isn't working label Aug 20, 2022
@devXprite
Copy link
Owner

Thanks @jJit0 for reporting this bug.
Now this bug had been fixed in v1.2.1

@devXprite devXprite linked a pull request Aug 20, 2022 that will close this issue
@ghost
Copy link
Author

ghost commented Aug 20, 2022

All good for me, it works now 😄

@ghost ghost closed this as completed Aug 20, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant