Could not resolve @uppy/drag-drop

I am trying to integrate uppy into my React application however I get this error from chrome browser..

@uppy_react.js?v=4d9c6331:270 Uncaught Error: Could not resolve "@uppy/drag-drop" imported by "@uppy/react". Is it installed?
    at optional-peer-dep:__vite-optional-peer-dep:@uppy/drag-drop:@uppy/react (@uppy_react.js?v=4d9c6331:270:11)
    at __require (chunk-WOOG5QLI.js?v=4d9c6331:12:50)
    at @uppy_react.js?v=4d9c6331:6888:32
optional-peer-dep:__vite-optional-peer-dep:@uppy/drag-drop:@uppy/react	@	@uppy_react.js?v=4d9c6331:270
__require	@	chunk-WOOG5QLI.js?v=4d9c6331:12
(anonymous)	@	@uppy_react.js?v=4d9c6331:6888

My app dependencies..

  "dependencies": {
    "@uppy/core": "^4.5.3",
    "@uppy/react": "^4.5.2",
    "@uppy/xhr-upload": "^4.4.2",
    "aws-amplify": "^6.6.6"
  },

I looked in the node_modules/uppy/react folder and it looks like the drag-drop library is there so i’m not sure why i’m getting this error. Any help would be appreciated. Thanks in advance.

We’re about to do a major release to solve this annoying issue! Tomorrow morning :slight_smile:

For now, you have to install all peer dependencies.