cristo-rabani / meteor-universe-react-markdown-wysiwyg

A few of react components, that providing visual editor of markdown and Html for Meteor
https://atmospherejs.com/universe/react-markdown-wysiwyg
MIT License
6 stars 2 forks source link

Not working because of lack of the collapse-whitespace dependency. #2

Open alekkowalczyk opened 8 years ago

alekkowalczyk commented 8 years ago

I tried to use this package, but when I call: import mediumEditor from '{universe:react-markdown-wysiwyg}/editor/medium-editor'; or import ReactMarkdownMediumEditor from '{universe:react-markdown-wysiwyg}/ReactMarkdownMediumEditor';

I'm gettings:

Uncaught (in promise) Error: Module collapse-whitespace not declared as a dependency.(…)

cristo-rabani commented 8 years ago

Hello,

Your problem looks like concerns package named collapse-whitespace, take a look on error message: Error: Module collapse-whitespace not declared as a dependency. Do You have added "collapse-whitespace" package to project by "meteor add"?

Please check it outside (or without) of collapse-whitespace package.

Package universe:react-markdown-wysiwyg doesn't use package collapse-whitespace. Only you should have installed: universe:modules@0.6.1 and universe:i18n (second should be only recommended)

P.S. What version of react you use? This was tested with 0.13.x but I think that this should work for 0.14.x too, if not let me know (I can make upgrade) or send pull request

cristo-rabani commented 8 years ago

Hello again,

I found deps, npm package to-markdown use this package, please find directory ''universe-npm" in your os system tmp and remove all files inside.

What is your OS on computer? Is a mac OSX, Linux or windows

alekkowalczyk commented 8 years ago

'meteor add collapse-whitespace' doesn't find such package. I use react version 0.14.1 My system is Windows 10, where can I find the tmp folder for it?

cristo-rabani commented 8 years ago

Hello I made fixes for windows paths and React 0.14.x

I think that it will be run but I didn't checked yet on this system

Please make update to new version (1.1.0)

Please give me feedback in anyway

alekkowalczyk commented 8 years ago

Hi,

I updated to the new version, different issue now:

Uncaught (in promise) Error: Module to-markdown not declared as a dependency.(…)
 addToError @     system.js:43
 linkSetFailed @ system.js:643
 (anonymous function) @ system.js:440
 (anonymous function) @ dynamics_browser.js:51
cristo-rabani commented 8 years ago

Hi, Please remove "universe-npm" temp directory. Should be under path: %userprofile%\AppData\Local\Temp

I will check on windows this package, soon