title: Error: Command "yarn run build" exited with 1 - Vercel Deploy
body: <p>I am trying to follow this documentation: <a href="https://portal.thirdweb.com/guides/create-gasless-nft-drop" rel="nofollow noreferrer">https://portal.thirdweb.com/guides/create-gasless-nft-drop</a></p>
  <p>I follow the documentation without errors, til I cmd 'vercel' to deploy.
  Please note I have no error if I don't call functions from installed and importer dependencies.</p>
  <p>And when I deploy to Vercel, I have the following error:</p>
  <pre><code>info  - Generating static pages (0/3)
  Error: Must be used within Provider
      at useContext (/vercel/path0/node_modules/wagmi/dist/wagmi.cjs.prod.js:1705:23)
      at useConnect (/vercel/path0/node_modules/wagmi/dist/wagmi.cjs.prod.js:738:7)
      at useConnect (/vercel/path0/node_modules/@thirdweb-dev/react/dist/index.js:1:8792)
      at useMetamask (/vercel/path0/node_modules/@thirdweb-dev/react/dist/index.js:1:9240)
      at MyApp (/vercel/path0/.next/server/pages/_app.js:29:70)
      at Hc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:64:191)
      at Kc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:66:253)
      at Z (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:71:89)
      at Lc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:73:98)
      at Nc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:72:306)
  Error occurred prerendering page &quot;/&quot;. Read more: https://nextjs.org/docs/messages/prerender-error
  Error: Must be used within Provider
      at useContext (/vercel/path0/node_modules/wagmi/dist/wagmi.cjs.prod.js:1705:23)
      at useConnect (/vercel/path0/node_modules/wagmi/dist/wagmi.cjs.prod.js:738:7)
      at useConnect (/vercel/path0/node_modules/@thirdweb-dev/react/dist/index.js:1:8792)
      at useMetamask (/vercel/path0/node_modules/@thirdweb-dev/react/dist/index.js:1:9240)
      at MyApp (/vercel/path0/.next/server/pages/_app.js:29:70)
      at Hc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:64:191)
      at Kc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:66:253)
      at Z (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:71:89)
      at Lc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:73:98)
      at Nc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:72:306)
  Error: Must be used within Provider
      at useContext (/vercel/path0/node_modules/wagmi/dist/wagmi.cjs.prod.js:1705:23)
      at useConnect (/vercel/path0/node_modules/wagmi/dist/wagmi.cjs.prod.js:738:7)
      at useConnect (/vercel/path0/node_modules/@thirdweb-dev/react/dist/index.js:1:8792)
      at useMetamask (/vercel/path0/node_modules/@thirdweb-dev/react/dist/index.js:1:9240)
      at MyApp (/vercel/path0/.next/server/pages/_app.js:29:70)
      at Hc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:64:191)
      at Kc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:66:253)
      at Z (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:71:89)
      at Lc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:73:98)
      at Nc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:72:306)
  Error occurred prerendering page &quot;/500&quot;. Read more: https://nextjs.org/docs/messages/prerender-error
  Error: Must be used within Provider
      at useContext (/vercel/path0/node_modules/wagmi/dist/wagmi.cjs.prod.js:1705:23)
      at useConnect (/vercel/path0/node_modules/wagmi/dist/wagmi.cjs.prod.js:738:7)
      at useConnect (/vercel/path0/node_modules/@thirdweb-dev/react/dist/index.js:1:8792)
      at useMetamask (/vercel/path0/node_modules/@thirdweb-dev/react/dist/index.js:1:9240)
      at MyApp (/vercel/path0/.next/server/pages/_app.js:29:70)
      at Hc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:64:191)
      at Kc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:66:253)
      at Z (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:71:89)
      at Lc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:73:98)
      at Nc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:72:306)
  Error: Must be used within Provider
      at useContext (/vercel/path0/node_modules/wagmi/dist/wagmi.cjs.prod.js:1705:23)
      at useConnect (/vercel/path0/node_modules/wagmi/dist/wagmi.cjs.prod.js:738:7)
      at useConnect (/vercel/path0/node_modules/@thirdweb-dev/react/dist/index.js:1:8792)
      at useMetamask (/vercel/path0/node_modules/@thirdweb-dev/react/dist/index.js:1:9240)
      at MyApp (/vercel/path0/.next/server/pages/_app.js:29:70)
      at Hc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:64:191)
      at Kc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:66:253)
      at Z (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:71:89)
      at Lc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:73:98)
      at Nc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:72:306)
  Error occurred prerendering page &quot;/404&quot;. Read more: https://nextjs.org/docs/messages/prerender-error
  Error: Must be used within Provider
      at useContext (/vercel/path0/node_modules/wagmi/dist/wagmi.cjs.prod.js:1705:23)
      at useConnect (/vercel/path0/node_modules/wagmi/dist/wagmi.cjs.prod.js:738:7)
      at useConnect (/vercel/path0/node_modules/@thirdweb-dev/react/dist/index.js:1:8792)
      at useMetamask (/vercel/path0/node_modules/@thirdweb-dev/react/dist/index.js:1:9240)
      at MyApp (/vercel/path0/.next/server/pages/_app.js:29:70)
      at Hc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:64:191)
      at Kc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:66:253)
      at Z (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:71:89)
      at Lc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:73:98)
      at Nc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:72:306)
  info  - Generating static pages (3/3)
  &gt; Build error occurred
  Error: Export encountered errors on following paths:
      /
      /_error: /404
      /_error: /500
      at /vercel/path0/node_modules/next/dist/export/index.js:397:19
      at runMicrotasks (&lt;anonymous&gt;)
      at processTicksAndRejections (internal/process/task_queues.js:95:5)
      at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/trace/trace.js:79:20)
      at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/trace/trace.js:79:20)
      at async /vercel/path0/node_modules/next/dist/build/index.js:886:13
      at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/trace/trace.js:79:20)
      at async Object.build [as default] (/vercel/path0/node_modules/next/dist/build/index.js:55:25)
  error Command failed with exit code 1.
  info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
  Error: Command &quot;yarn run build&quot; exited with 1
  </code></pre>
  <p>What should I try to solve this error? Thanks a lot.</p>