diedsmiling / material-ui-markdown-editor

React.js Markdown editor component based on material-ui
MIT License
29 stars 9 forks source link

Cant use MarkdownEditor Component #8

Open orlandodiaz opened 5 years ago

orlandodiaz commented 5 years ago

It looks like this project is using an outdated CodeMirror or React version but I can't get my project to load when I import the MarkdownEditor Component. I get the following error:

TypeError: Cannot read property 'func' of undefined ./node_modules/react-codemirror/lib/Codemirror.js node_modules/react-codemirror/lib/Codemirror.js:12 9 | var CodeMirror = React.createClass({ 10 | displayName: 'CodeMirror', 11 | propTypes: {

12 | onChange: React.PropTypes.func, 13 | onFocusChange: React.PropTypes.func, 14 | options: React.PropTypes.object, 15 | path: React.PropTypes.string, View compiled

diedsmiling commented 5 years ago

Hi. Thanks for reporting this, will try to find some time following week and update the project.

johndc7 commented 3 years ago

Is there any solution to this? I am having the same problem.