Closed guidupuy closed 1 year ago
To be frank, I have no idea. This looks like either a build tool problem or a problem with is-emoji-supported. It makes no sense to me for a source map loader to try to parse typescript files but I'm no build guru so maybe it actually does make sense somehow. Also I've never used CRA - if somehow this is a CRA-specific quirk, feel free to contribute a fix either here or to CRA!
If you remove country-flag-emoji-polyfill
and add is-emoji-supported
and call it on startup (like here https://github.com/koala-interactive/is-emoji-supported#basic-usage), do you get the same error? If yes, then it's for sure got nothing to do with country-flag-emoji-polyfill
.
Getting this when compiling a CRA project after adding this package: