Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
codeBelt
commented
Jul 19, 2022
| import React from 'react'; | ||
| import Link from 'next/link'; | ||
| import { Routes } from '../../../constants/Routes'; | ||
| import { GridCellKind } from "@glideapps/glide-data-grid"; |
Owner
Author
There was a problem hiding this comment.
Using the GridCellKind enum outside of the "dynamic" causes an error when trying to build the Next.js app for production. During development you do see the error in the terminal but in the browser it is fine.
ReferenceError: document is not defined
ReferenceError: document is not defined
at clearCacheOnLoad (file:///Users/robert/WebstormProjects/my-next.js-starter/node_modules/@glideapps/glide-data-grid/dist/js/index.js:927:3)
at file:///Users/robert/WebstormProjects/my-next.js-starter/node_modules/@glideapps/glide-data-grid/dist/js/index.js:934:6
at ModuleJob.run (node:internal/modules/esm/module_job:185:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:281:24)
at async importModuleDynamicallyWrapper (node:internal/vm/module:437:15)
info - Collecting page data
[= ] info - Generating static pages (3/11)file:///Users/robert/WebstormProjects/my-next.js-starter/node_modules/@glideapps/glide-data-grid/dist/js/index.js:927
if (((_a = document == null ? void 0 : document.fonts) == null ? void 0 : _a.ready) === void 0)
^
Owner
Author
There was a problem hiding this comment.
Run yarn build to see the build fail or run yarn dev and look at the terminal console.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.