when i am updating 6 to 7 i am getting this error , i am using react gatbyjs
“@web3auth/base”: “^7.0.1”, “@web3auth/modal”: “^7.0.1”, “@web3auth/solana-wallet-connector-plugin”: “^7.0.1”,
It seems like you’re encountering a dependency issue related to the object.assign/polyfill while updating your project. This is a common problem when dependencies are not aligned properly. To resolve this, you can add a specific package to your development dependencies.
Firstly, run the following command in your terminal to install the object.assign package as a development dependency:
npm i -D object.assign
After installing the package, you need to update your gatsby-node.js file to ensure that webpack correctly resolves the object.assign/polyfill. Add the line "object.assign/polyfill": require.resolve("object-assign"), to the resolve block in your webpack configuration.
Here’s how your updated gatsby-node.js should look:
This configuration should address the issue you’re facing by ensuring that all necessary polyfills are correctly resolved. If you encounter further issues, please don’t hesitate to reach out!