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

Does not work without "ember-cli-shims" #38

Open
jgoclawski opened this issue Sep 24, 2020 · 0 comments
Open

Does not work without "ember-cli-shims" #38

jgoclawski opened this issue Sep 24, 2020 · 0 comments

Comments

@jgoclawski
Copy link

We tried to remove ember-cli-shims from our app's package.json, but it broke the colors pickers. Not sure what might be the problem, do you have any ideas?

In the README of ember-cli-shims it says that

Note that you won't be able to drop this dependency from your app's package.json file until all your addons have upgraded to ember-cli-babel >= 6.6.0.

but I think that this addon uses a newer version of ember-cli-babel.

ember-spectrum-color-picker is at the newest version (0.10.1). The error in the console says:

spectrum-color-picker.js:136 Uncaught TypeError: (0 , _jquery.default)(...).spectrum is not a function
    at Class.initSpectrum (spectrum-color-picker.js:136)
    at Class.didInsertElement (spectrum-color-picker.js:142)
    at Class.trigger (core_view.js:70)
    at Class.superWrapper [as trigger] (index.js:441)
    at CurlyComponentManager.didCreate (index.js:4125)
    at TransactionImpl.commit (runtime.js:1850)
    at EnvironmentImpl.commit (runtime.js:1995)
    at inTransaction (runtime.js:2153)
    at InteractiveRenderer._renderRoots (index.js:9045)
    at InteractiveRenderer._renderRootsTransaction (index.js:9106)

The problem is fixed by restoring ember-cli-shims in the package.json.

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

1 participant