Deveo / ember-emojione

EmojiOne helper and components for your Ember App
https://deveo.github.io/ember-emojione/
MIT License
17 stars 9 forks source link

Errors after build #55

Open denisviklov opened 4 years ago

denisviklov commented 4 years ago

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

lolmaus commented 4 years ago

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 commented 4 years ago

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

lolmaus commented 4 years ago

Ah, forget everything I just said.

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

lolmaus commented 4 years ago

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

lolmaus commented 4 years ago

And share your ember-emojione config.