Closed louisstow closed 1 year ago
Are those dev tools React-dependent? That would be too bad as Prosemirror is not. Indeed, after installing those dev tools 3.0.2 i get a dependency error (I use vanilla JS without React):
Module not found: Error: Can't resolve 'react' in '/myproject/node_modules/unstated/lib'
@ ./node_modules/prosemirror-dev-tools/dist/esm/index.js 3:0-36 26:52-60
Looking at the mentioned line, it says:
import { Provider } from "unstated";
@Javarome see if this PR fixes it for you: https://github.com/d4rkr00t/prosemirror-dev-tools/pull/110
@louisstow Thank you for the #110, It worked for me. Can we hope that it will be merged in the near future?
React 17 has been listed as peer dependency in https://github.com/d4rkr00t/prosemirror-dev-tools/commit/adcf9688dc5f64afcd52e8f2c29b20a67ac06bd8. I guess that #110 is no longer needed.
@louisstow It seems this is still an issue as react-json-tree
is added as a dependency, which explicitly lists React 15-16 as a peer dependency.