Hello, I followed the quickstart for react tutorial, but I'm getting an error on app start:
_app.tsx
import '../styles/globals.css'
import type { AppProps } from 'next/app'
import { ChainId, ThirdwebProvider } from "@thirdweb-dev/react"
function MyApp({ Component, pageProps }: AppProps) {
return (
<>
<ThirdwebProvider desiredChainId={ChainId.Mainnet}>
<Component {...pageProps} />
</ThirdwebProvider>
</>
)
}
export default MyApp
index.tsx
import { Fragment, useEffect } from "react"
import { ChevronDownIcon, RefreshIcon } from "@heroicons/react/solid"
import Head from "next/head"
import Header from "../components/Header"
import TabBox from "../components/TabBox"
import { Menu, Transition } from '@headlessui/react'
import metamask from '../public/metamask.png'
import phantom from '../public/phantom.png'
import Image from 'next/image'
import Profile from "../components/Profile"
import { useAddress, useDisconnect, useMetamask } from "@thirdweb-dev/react";
export default function Home() {
const connectWithMetamask = useMetamask()
Hello, I followed the quickstart for react tutorial, but I'm getting an error on app start:
_app.tsx
index.tsx
import { Fragment, useEffect } from "react" import { ChevronDownIcon, RefreshIcon } from "@heroicons/react/solid" import Head from "next/head" import Header from "../components/Header" import TabBox from "../components/TabBox" import { Menu, Transition } from '@headlessui/react' import metamask from '../public/metamask.png' import phantom from '../public/phantom.png' import Image from 'next/image' import Profile from "../components/Profile" import { useAddress, useDisconnect, useMetamask } from "@thirdweb-dev/react";
export default function Home() { const connectWithMetamask = useMetamask()