ember-emojione
ember-emojione copied to clipboard
Errors after build
Hi, guys have strange error that appears only in production build but on dev server everything works as a charm.
So, I get this error in production build:
Uncaught TypeError: _emojione.default.toImage is not a function
My env is
"ember-emojione": "^4.0.1"
ember-cli: 2.16.2
node: 8.16.0
os: linux x64
I've tried different configs but still have no luck
Hi!
It looks like the emojione
package gets removed from the build for some reason.
Please try yarn add -D emojione
or npm i -D emojione
and see if it helps.
Wait, it needs to be a specific version. Maybe the problem is that the production build gets a more recent version...
Ah, forget everything I just said.
This is an old addon, it's still using Bower to install emojione
.
This addon's setup is quite elaborate. Please go through the readme very carefully and see if you've been doing something wrong.
And share your ember-emojione config.