-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usage with ES6 style imports #12
Comments
Hi @cyorobert, I guess I forgot to declare the dependency on wrapper. I will check, thanks. |
Excellent @needim thank you! |
I'm having a similar, but different problem with ES6. (v0.2.0)
results in:
|
Disregard - this looks to be an issue with a emoji js required package that is not compatible with webpack 3. |
Ok, now looking at it further, if I install wdt-emoji via NPM, my webpack complains:
The problem is that js-emoji npm doesn't exist. Maybe they've renamed it, because on their git, they refer to their package as 'emoji-js'. I install that, and then have to change the references in the wdt-emoji js to compensate. |
@DaveSanders were you able to solve the above issue, i am having similar problem? |
Hey, thanks for the hard work - the library is great! When I try to use the library with ES6 imports like below
I get the error
Uncaught ReferenceError: EmojiConvertor is not defined
. I'm assuming this is because I haven't importedemoji.min.js
, but why wouldn't the bundle import that module itself? Why do we need to create an extra global definition for that object?In order to use the library I had to do the following:
The text was updated successfully, but these errors were encountered: