Skip to content
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

Errors after build #55

Open
denisviklov opened this issue Mar 11, 2020 · 5 comments
Open

Errors after build #55

denisviklov opened this issue Mar 11, 2020 · 5 comments

Comments

@denisviklov
Copy link

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
Copy link
Contributor

lolmaus commented Mar 11, 2020

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
Copy link
Contributor

lolmaus commented Mar 11, 2020

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

@lolmaus
Copy link
Contributor

lolmaus commented Mar 11, 2020

Ah, forget everything I just said.

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

@lolmaus
Copy link
Contributor

lolmaus commented Mar 11, 2020

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

@lolmaus
Copy link
Contributor

lolmaus commented Mar 11, 2020

And share your ember-emojione config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants