lundi 24 avril 2017

Install ember flora editor in docker

i'm currently working on an existing ember project with rails as a backend and docker is used as a container.

I have to implement a WYSIWYG Editor in an ember view and opting for ember flora editor (http://ift.tt/23ZRsYc). However, i'm facing issues while installing it. Firstly i tired installing the add-on using ember install ember-froala-editor but got the following error logs:

Could not find watchman, falling back to NodeWatcher for file system events
The `install` command does not take any arguments. You must use `install:npm` or `install:bower` to install a specific package.

I searched for it and got an answer saying that i should try something like ember install:addon ember-froala-editor.

This gives me the following logs

(node:5256) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
(node:5256) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
version: 0.1.12
Could not find watchman, falling back to NodeWatcher for file system events
(node:5256) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Installed packages for tooling via npm.
Cannot read property 'apply' of undefined

TypeError: Cannot read property 'apply' of undefined

  at Class.init (/Users/c224/Documents/sites/path/node_modules/ember-froala-editor/index.js:33:21)
  at new Class (/Users/c224/Documents/sites/path/node_modules/ember-cli/node_modules/core-object/core-object.js:18:12)
  at /Users/c224/Documents/sites/path/node_modules/ember-cli/lib/models/project.js:368:27
  at visit (/Users/c224/Documents/sites/path/node_modules/ember-cli/lib/utilities/DAG.js:23:3)
  at DAG.topsort (/Users/c224/Documents/sites/path/node_modules/ember-cli/lib/utilities/DAG.js:82:7)
  at Project.initializeAddons (/Users/c224/Documents/sites/path/node_modules/ember-cli/lib/models/project.js:364:9)
  at Project.reloadAddons (/Users/c224/Documents/sites/path/node_modules/ember-cli/lib/models/project.js:501:15)
  at Class.<anonymous> (/Users/c224/Documents/sites/path/node_modules/ember-cli/lib/tasks/addon-install.js:40:27)
  at $$$internal$$tryCatch (/Users/c224/Documents/sites/path/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:490:16)
  at $$$internal$$invokeCallback (/Users/c224/Documents/sites/path/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:502:17)
  at $$$internal$$publish (/Users/c224/Documents/sites/path/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:473:11)
  at $$rsvp$asap$$flush (/Users/c224/Documents/sites/path/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:1581:9)
  at _combinedTickCallback (internal/process/next_tick.js:67:7)
  at process._tickCallback (internal/process/next_tick.js:98:9)

I am not much aware about docker and hence on searching found this one command $ docker-compose run --rm ember generate model userhere. However i'm not sure if this will help.

Please guide me as to what exactly needs to be done to install this editor successfully to the ember app.

Please let me know if any other logs are needed. Thanks in Advance.




Aucun commentaire:

Enregistrer un commentaire