Open Ansub opened 11 months ago
Hi @Ansub! Thank you for reporting.
Can you try installing emoji-picker-react@4.6.2 and report back?
I tried installing emoji-picker-react@4.6.2, but I was still experiencing the same error. I had to remove the package from package.json in order to achieve a successful build.
Which bundler do you use? Or.more specifically, which webpack version?
Could it be a cached version of 4.6.1 in node_modules?
Would you mind clearing node modules and reinstalling latest ?
getting this error
`Error [ERR_REQUIRE_ESM]: require() of ES Module /speedy-app/node_modules/flairup/dist/index.js from /speedy-app/node_modules/emoji-picker-react/dist/emoji-picker-react.cjs.production.min.js not supported. index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules. Instead rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /speedy-app/node_modules/flairup/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
code: 'ERR_REQUIRE_ESM' }