ember-cli-copyable
ember-cli-copyable copied to clipboard
Could not find module `ember-cli-copyable`
I ran the following:
ember install ember-cli-copyable
App Info:
"devDependencies": {
"ember-cli": "0.2.5",
"ember-cli-copyable": "0.9.6"
},
"dependencies": {
"ember-cli": "0.2.5"
..... rest omitted
}
Model
`import DS from 'ember-data'`
`import ModelWithEmbeddedMixin from '../mixins/model-with-embedded-mixin'`
`import Copyable from 'ember-cli-copyable'`
listing = DS.Model.extend ModelWithEmbeddedMixin, Copyable,
# content omitted
`export default listing`
When I try to run the app I am given:
Error: Could not find module ember-cli-copyable
imported from main-app/models/listing
@davidpatters0n I am having the same issue. Were you able to figure it out, or did you end up using something else that you can recommend?
@colejoh - I weren't able to figure out this issue. I opted for using: https://developer.mozilla.org/en/docs/Web/API/Document/execCommand which has a copy command:
Copies the current selection to the clipboard. Conditions of having this behavior enabled vary from one browser to another, and have evolved over time. Check the compatibility table to determine if you can use it in your case.