react-codemirror icon indicating copy to clipboard operation
react-codemirror copied to clipboard

React-codemirror without webpack/browserify, with Typescript

Open bshandley opened this issue 8 years ago • 0 comments

I'm trying to install react-codemiror without webpack or browserify on an MVC 5 project that is using Typescript. I'm using the standalone distribution (dist/react-codemirror.js) which I thought would work fine. However, when I go to load the webpage, Chrome complains "Uncaught Error: Cannot find module 'react-dom." Both react.js and react-dom.js are loaded before react-codemirror.js.

The way I understand it, react.js and react-dom.js both make themselves globally available on load, so I shouldn't need to declare anything, right? Any thoughts?

Thank you!

bshandley avatar Jun 17 '17 17:06 bshandley