ember-spectrum-color-picker
ember-spectrum-color-picker copied to clipboard
Does not work without "ember-cli-shims"
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
.