Node Js: Use .nvmrc file for management, the version is lts/iron, it is recommended to use fnm as version management
依赖包管理:必须使用 pnpm,版本为 9.1.4
npx degit Pony-Unicorn/web3-framework my-project
cd my-project
pnpm install
pnpm dev
- Wagmi - Wagmi Reactivity for Ethereum apps
- viem - Ethereum library
- @reown/appkit - Wallet connection manager
- zustand In fact, maybe you really don’t need state management in nextjs
- TailwindCSS – Utility-first CSS framework for rapid UI development
- Radix – Primitives like modal, popover, etc. to build a stellar user experience
- ui.shadcn.com components are included in the
/components/ui
folder - lucide – Beautiful & consistent icons Made by the community.
- Framer Motion – Motion library for React to animate components with ease
- Font animation reference
- shadcn-ui-theme-generator - theme generator
- Simple Icons - popular brands svg
- TypeScript – Static type checker for end-to-end typesafety
- Prettier – Opinionated code formatter for consistent code style
- ESLint – Pluggable linter for Next.js and TypeScript
- AssetPack – AssetPack is a tool for optimising assets for the web. It can be used to transform, combine, compress assets. Any asset that you want to transform or optimise into something else can be done with AssetPack.
- 布局组件 flex、box、grid
- 面板弹窗管理
- 框架优化
- 合约调用返回错误,框架中没有友好的提示 viem 的错误处理
- console.log("error message >>>", error?.message.split("\n")[2])
- 合约调用返回错误,框架中没有友好的提示 viem 的错误处理
- 运行时控制台 Unable to find
next-intl
locale because the middleware didn't run on this request. See https://next-intl-docs.vercel.app/docs/routing/middleware#unable-to-find-locale. ThenotFound()
function will be called as a result. 错误处理
- 配置多语言后,需要使用src/navigation 中的 Link, redirect, usePathname, useRouter
- 合约:获取地址、获取链id、读取合约、写合约
- 更新 pnpm
- 升级依赖到最新版