roerohan / react-vnc

A React Component to connect to a websockified VNC client using noVNC.
https://roerohan.github.io/react-vnc/
MIT License
98 stars 23 forks source link

react-scripts dependency breaks newer vite/ts projects #58

Open jaredzwick opened 3 months ago

jaredzwick commented 3 months ago

Are you certain it's a bug?

Are you sure this is not an issue in noVNC?

Is there an existing issue for this?

Issue description

Please add react-scripts to dev dependencies instead of normal dependencies

aorsmen commented 1 month ago

If you try to use typescript v5.x, this issue still persists even if you put react-scripts in dev dependencies.

npm ERR! While resolving: react-scripts@5.0.1 npm ERR! Found: typescript@5.6.3 npm ERR! node_modules/typescript npm ERR! dev typescript@"5.6.3" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peerOptional typescript@"^3.2.1 || ^4" from react-scripts@5.0.1 npm ERR! node_modules/react-scripts npm ERR! dev react-scripts@"5.0.1" from the root project npm ERR! peer react-scripts@">=5.0.0" from react-vnc@2.0.2 npm ERR! node_modules/react-vnc npm ERR! react-vnc@"2.0.2" from the root project npm ERR! npm ERR! Conflicting peer dependency: typescript@4.9.5 npm ERR! node_modules/typescript npm ERR! peerOptional typescript@"^3.2.1 || ^4" from react-scripts@5.0.1 npm ERR! node_modules/react-scripts npm ERR! dev react-scripts@"5.0.1" from the root project npm ERR! peer react-scripts@">=5.0.0" from react-vnc@2.0.2 npm ERR! node_modules/react-vnc npm ERR! react-vnc@"2.0.2" from the root project