error conversion of utf to emoji
joaomarcoscmaciel opened this issue · 2 comments
joaomarcoscmaciel commented
Hello yonahforst,
I'm getting an error of: undefined is not an object (evaluating 'String.fromCodePoint.apply')
The error directs to the line 37 of index.js:
const charFromUtf16 = utf16 => String.fromCodePoint(...utf16.split('-').map(u => '0x' + u))
Can you help me?
Thanks in advance.
yonahforst commented
@joaomarcoscmaciel - which version of i dont think that's it. which version of node are you running?emoji-datasource
did npm install?
maybe you can see which codepoint if failing:
const charFromUtf16 = utf16 => {
console.log(utf16)
return String.fromCodePoint(...utf16.split('-').map(u => '0x' + u))
}
yonahforst commented
closing due to inactivity