Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add glide-data-grid example #11

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

add glide-data-grid example #11

wants to merge 4 commits into from

Conversation

codeBelt
Copy link
Owner

No description provided.

@vercel
Copy link

vercel bot commented Jul 19, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
my-next-js-starter ✅ Ready (Inspect) Visit Preview Jul 30, 2022 at 1:03AM (UTC)

@@ -1,13 +1,57 @@
import React from 'react';
import Link from 'next/link';
import { Routes } from '../../../constants/Routes';
import { GridCellKind } from "@glideapps/glide-data-grid";
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)
    ^

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Run yarn build to see the build fail or run yarn dev and look at the terminal console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant