Skip to content

Error when deploying to Vercel #2

@wisejayden

Description

@wisejayden

What is the current behavior?

What's happening that seems wrong?

When deploying to Vercel you get the following error:

ReferenceError: document is not defined
    at createTag (/vercel/path0/.next/server/chunks/567.js:1:8722)
    at /vercel/path0/.next/server/chunks/567.js:1:21553
    at /vercel/path0/.next/server/chunks/567.js:1:21676
    at /vercel/path0/.next/server/chunks/567.js:1:24471
    at /vercel/path0/.next/server/chunks/567.js:1:8400
    at /vercel/path0/.next/server/chunks/567.js:1:8404
    at createCommonjsModule (/vercel/path0/.next/server/chunks/567.js:1:8046)
    at 9779 (/vercel/path0/.next/server/chunks/567.js:1:8294)
    at t (/vercel/path0/.next/server/webpack-runtime.js:1:128)
    at 89 (/vercel/path0/.next/server/chunks/686.js:1:575) {
  digest: '3712091833'
}

Steps to reproduce

To make it faster to diagnose the root problem. Tell us how can we reproduce the bug.

  1. Clone the repo
  2. Deploy to vercel.

Expected behavior

What would you expect to happen when following the steps above?

You get a working Demo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions