wooorm/gemoji

Error when upgrading gemoji - SyntaxError: Unexpected token 'export'

montoya332 opened this issue · 1 comments

Getting this error when upgrading package and running jest unit tests

/**/node_modules/gemoji/index.js:20
export const gemoji = [
    ^^^^^^
    SyntaxError: Unexpected token 'export'
    > 1 | import gemoji from "gemoji";
        | ^

Any suggestions on alternatives

Hey, export is modern JavaScript: ESM
jest sometimes has problems with ESM.
More info here https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c.

tldr: switch to ESM or use an older version of this package.