react-electron-browser-view icon indicating copy to clipboard operation
react-electron-browser-view copied to clipboard

Fix package.json - React 16 should be marked as compatible

Open alexander-w-o-s opened this issue 5 years ago • 0 comments

You can see the following error if try to use with React 16 (instead of React 15):

[email protected] requires a peer of react@^15.0.0 but none is installed.

The reason of this warning: https://github.com/vantezzen/react-electron-browser-view/blob/f7bd112aff512fdb41e43fb9a385fd49d2382fa5/package.json#L55-L56

Need to replace it by the following:

    "react": "^15.0.0 || ^16.0.0",
    "react-dom": "^15.0.0 || ^16.0.0",

You can check semver syntax here: https://semver.npmjs.com/

alexander-w-o-s avatar Aug 04 '20 14:08 alexander-w-o-s