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
Copy file name to clipboardExpand all lines: docs/guide/quick-start.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,9 @@ Of course, compared with `NFTImage`, we may use more components of the connectio
45
45
46
46
## Use in Next.js
47
47
48
-
In [Next.js](https://nextjs.org/), based on its build mechanism, you may encounter the following errors when introducing packages such as `@ant-design/web3`:
48
+
- If you're using recommended App Router, add the `"use client"` directive at the top of the file to use Provider such as `WagmiWeb3ConfigProvider`, considering that `createContext` only works in Client Components.
49
+
50
+
- In [Next.js](https://nextjs.org/), based on its build mechanism, you may encounter the following errors when introducing packages such as `@ant-design/web3`:
49
51
50
52
1.`Error: require() of ES Module ... from ... not supported.`
51
53
2.`SyntaxError: Cannot use import statement outside a module`
0 commit comments