π οΈGet Started
A quick guide to set up use-wallet in your project
Last updated
npm install @txnlab/use-wallet-reactnpm install @txnlab/use-wallet-vuenpm install @txnlab/use-wallet-solidnpm install @txnlab/use-walletimport type { NextConfig } from 'next'
import { webpackFallback } from '@txnlab/use-wallet-react'
const nextConfig: NextConfig = {
/* config options here */
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
...webpackFallback
}
}
return config
}
}
export default nextConfig// @ts-check
import { webpackFallback } from '@txnlab/use-wallet-react'
/** @type {import('next').NextConfig} */
const nextConfig = {
/* config options here */
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
...webpackFallback
}
}
return config
}
}
export default nextConfig// @ts-check
/** @type {import('next').NextConfig} */
const nextConfig = {
/* config options here */
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
...require('@txnlab/use-wallet-react').webpackFallback
}
}
return config
}
}
module.exports = nextConfig