Closed Mitoax closed 1 year ago
i
means emoji-regex
module. Is this code throwing some errors in your code context?
import emojiRegex from 'emoji-regex'
i
meansemoji-regex
module. Is this code throwing some errors in your code context?import emojiRegex from 'emoji-regex'
No error for this import
OK, could you share a minimal reproducible example project? A code you've described is working on Node.js module without any errors.
If you are using a bundler, it may have met some kind of troubles about CommonJS interop from ESM.
We have met exactly same situation in marp-team/marp-vscode. Here is a workaround: https://github.com/marp-team/marp-vscode/blob/23e905b970c81629353be31b564d50aadb2a8bc2/webpack.base.config.js#L7-L13
caused error: