You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After further investigation I found that this is happening only when installing package locally through file and if node_modules folder exists in the extension package.
If we remove node_modules as well then the react error is fixed and the only error is that the peerDependencies cannot be installed automatically. So in your case "antd": "^5.4.0",. This dependency was not installed in my project so it gave me error for missing dependency when i started the project. I am still unsure why peerDeps are not installing even when they are mentioned in devDeps as well.
Steps to Reproduce:
useState
hook.Expected Behavior:
Screenshots:
This issue usually happens when multiple react versions are conflicting.
I also tried removing
react
andreact-dom
fromdevDependencies
and only keeping them in peer deps. (Got same error, didn't worked)Using state in a react button component seems a very basic functionality to me so it should not give any errors. I maybe missing something obvious.
This is the modified code of
Button.tsx
component:The text was updated successfully, but these errors were encountered: