lifinance / widget

LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
https://li.fi/widget
Apache License 2.0
126 stars 84 forks source link

[Question] - How to properly configure with nextjs12? #64

Closed risardi123 closed 1 year ago

risardi123 commented 1 year ago

Currently the example is on nextjs13, but I try to adapt with nextjs12 which not work as intended. Or is it not compatible with nextjs 12

And there is strange linter error, when install "@lifi/widget": "^1.32.8":

Screenshot 2023-03-16 at 11 20 33

package.json: "next": "12.1.0", "next-transpile-modules": "^10.0.0", "react": "17.0.2", "swr": "^1.3.0" "react-dom": "17.0.2", "@lifi/sdk": "^1.7.2", "@lifi/widget": "^1.32.8",

chybisov commented 1 year ago

@risardi123 it should work fine with Next.js 12 and React 18. You use React 17, so please upgrade to the latest.