Closed Rishabhraghwendra18 closed 2 years ago
I believe this is occuring because of mismatched peerDeps.
I have a PR up to resolve this, but I don't know of a way to test it without deploying it. I'll do so tomorrow, and see if it's resolved or needs further investigation.
Thanks for reporting this! It's definitely an issue that we'd like to fix.
:tada: This issue has been resolved in version 2.8.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
I have spent some time on modifying widget to use custom routing contract and it works great in cosmos. But I can't build production package on my machine. I got a similar error to this issue. @zzmp Could you clarify how you solved it?
yarn && yarn build
. I got a dist, but if I add it to my project using link (pnpm link, exactly), I facing invalid hooks usage error
(in TestableWidget component, but I think it doesn't matter)
4a. I have tried to add package to clean CRAv5 project, but get the same result.Well, is there any ideas what I'm doing wrong and how I can finally build package on my own? Thanks in advance
UPD. After all I found the problem - my builder add react twice, because I used package locally. So I have to remove node_modules from widgets folder and use webpack (parcel fails with 'can't resolve react')
Bug Description I want to use uniswap widget but getting this error in the chrome dev console:
I don't know why its happening . Just by importing the
SwapWidget
I am getting this error. Steps to Reproduce@uniswap/widgets: ^2.7.0
yarn create react-app my-app
.App.jsx
:function App() { return (
); }
export default App;
import React from "react"; import { SwapWidget } from '@uniswap/widgets' import '@uniswap/widgets/fonts.css'
function UniSwapWidget() { return (
); }
export default UniSwapWidget;