Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

app crashed after install @aws-sdk/client-s3 and @aws-sdk/lib-storage

default discord avatar
cbregante2 years ago
1

it doesn't show any error in terminal but in browser console it shows this error:


caught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:


1. You might have mismatching versions of React and the renderer (such as React DOM)


2. You might be breaking the Rules of Hooks


3. You might have more than one copy of React in the same app



I use this dependencies



"dependencies": {


"payload": "^1.7.1",


"dotenv": "^8.2.0",


"express": "^4.17.1",


"@payloadcms/plugin-cloud-storage": "^1.0.14",


"@aws-sdk/client-s3": "^3.272.0",


"@aws-sdk/lib-storage": "^3.272.0"


}



Even after uninstalling the error persists


Any ideas?



i solved with npm i --legacy-peer-deps

    Star on GitHub

    Star

    Chat on Discord

    Discord

    online

    Can't find what you're looking for?

    Get dedicated engineering support directly from the Payload team.