ember-emojione icon indicating copy to clipboard operation
ember-emojione copied to clipboard

Errors after build

Open denisviklov opened this issue 4 years ago • 5 comments

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

denisviklov avatar Mar 11 '20 02:03 denisviklov

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.

lolmaus avatar Mar 11 '20 06:03 lolmaus

Wait, it needs to be a specific version. Maybe the problem is that the production build gets a more recent version...

lolmaus avatar Mar 11 '20 06:03 lolmaus

Ah, forget everything I just said.

This is an old addon, it's still using Bower to install emojione.

lolmaus avatar Mar 11 '20 06:03 lolmaus

This addon's setup is quite elaborate. Please go through the readme very carefully and see if you've been doing something wrong.

lolmaus avatar Mar 11 '20 06:03 lolmaus

And share your ember-emojione config.

lolmaus avatar Mar 11 '20 06:03 lolmaus