-
Notifications
You must be signed in to change notification settings - Fork 722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove type declaration for a module in types package #646
Conversation
This pull request is being automatically deployed with Vercel (learn more). react-app – ./examples/react-app🔍 Inspect: https://vercel.com/walletconnect/react-app/8ePHkjJSFJSBAAiQBB8GW7Zj1SjR [Deployment for 0a1ad1f failed] react-wallet – ./examples/react-wallet🔍 Inspect: https://vercel.com/walletconnect/react-wallet/aCFy4FXEbGwrACLDF63FEDwEm9m7 [Deployment for 0a1ad1f failed] |
@@ -67,6 +67,7 @@ | |||
"lerna": "3.20.2", | |||
"npm-run-all": "4.1.5", | |||
"prettier": "1.19.1", | |||
"typescript": "^4.4.4", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npx tsc
in the build step asked me to install typescript
first
What I've been recommending instead is that you install using NPM aliases not only for the client but also for it's dependencies.
I know it's not a perfect solution nor the best developer experience but we intend to improve this 🙏 |
This is hacky and does not fix the issue. What's wrong with merging my PR that fixes the problem? You don't need to include module declaration for types package because that's literally what the type package is for. |
@pedrouid Could you please take another look? I believe the current type packages users |
Thanks for the PR @mikheevm 🙌 I will handle this on the |
Check commit ea0d4e3 |
thank you! |
In the current form, the declaration overwrites types for modules named
@walletconnect/types
, this makes it impossible to properly integrate walletconnect v1 and v2 in the same app, so if you'd try to import types for v2 it will resolve to v1 types.Required for safe-global/safe-react-apps#178