lazybensch / ember-cli-copyable

Deeply copies your records including their relations. The mixin is smart enough to resolve not loaded relations and is configurable to what should be shallow/deeply copied or excluded entirely.
MIT License
25 stars 17 forks source link

Could not find module `ember-cli-copyable` #21

Open davidpatters0n opened 8 years ago

davidpatters0n commented 8 years ago

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

colejoh commented 8 years ago

@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?

davidpatters0n commented 8 years ago

@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.