table icon indicating copy to clipboard operation
table copied to clipboard

Cell does not render content in production builds

Open nikhilem opened this issue 6 years ago • 33 comments

Describe the bug (required)

In react-table v7.0.0, cells of the table are rendered empty only in production builds of the app, but works in the development server

Provide an example via Codesandbox! (required) Example: Virtualized-Rows sandbox works fine when run in development mode. But, when run by building the project(yarn build), the cells are empty.

Steps To Reproduce (required) Steps to reproduce the behavior:

Build the project and the run the built version, the cells of the table are empty

Expected behavior (Recommended) The built version should works exactly as the development version, the cells of the table should be rendered correctly.

Screenshots

When run locally(development version) image

When run after building(production version) image

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Chrome
  • Version: 80

Smartphone (please complete the following information): N/A

Additional context React Table version: v7.0.0

Works fine on v7.0.0-rc.10

nikhilem avatar Mar 13 '20 05:03 nikhilem

Experiencing this same issue but this time the entire table is not rendered in production, even after downgrading from v7.5.2 to v7.0.0.0-rc.16

UcheSylvester avatar Oct 18 '20 00:10 UcheSylvester

Removing react.strictmode fixed it for me. If you’re using CRA your app will be wrapped in it.

pmilla1606 avatar Oct 18 '20 00:10 pmilla1606

Removing react.strictmode fixed it for me. If you’re using CRA your app will be wrapped in it.

@pmilla1606, the app is not wrapped in react.strictmode.

UcheSylvester avatar Oct 18 '20 00:10 UcheSylvester

Are you on the latest version? I haven’t had any issues since removing strict and updating.

pmilla1606 avatar Oct 18 '20 01:10 pmilla1606

currently, no. I had to downgrade to v7.0.0.0-rc.16 which didn't solve the problem either. But I'd removed the strictmode even before installing react table

UcheSylvester avatar Oct 18 '20 01:10 UcheSylvester

I'm experiencing similar issue, but I can't see only table head. I tried to downgrade the version a few times, but without success. My current version is 7.6.0

Kuzzmich avatar Oct 18 '20 16:10 Kuzzmich

Similar issue here, building a CRA app, it doesn't render anything. Downgraded to 7.0.2, working now.

gustavo-pateti avatar Oct 30 '20 16:10 gustavo-pateti

Same here, i cant see the content of rows, but the number of rows are right, the header is right too, [email protected]

Shauandsss avatar Feb 10 '21 13:02 Shauandsss

Same here, seeing this issue in production (but not locally) on version 7.6.3

AxelThomsonEk avatar Feb 16 '21 01:02 AxelThomsonEk

I am also seeing this issue, I was on the latest version, 7.6.3, and downgraded all the way back to 7.0.0, and it still didn't fix it. I would be great to have an update from @tannerlinsley on this issue, seems quite major.

nuno-ferrao avatar Feb 26 '21 17:02 nuno-ferrao

Again, same issue with version 7.7.0, downgrading does nothing

Edit: i think it didn’t read json file properly

mil0s2 avatar Jan 13 '22 17:01 mil0s2

I've faced the same issue with version 7.7.0 in a next.js project. Downgrading the next version from 12.0.8 (latest) to 12.0.7 solved the issue.

kkrzr avatar Jan 20 '22 10:01 kkrzr

I also had this issue with 7.7.0 in a next.js project with version 12.1.0. Downgrading to 12.0.7 fixed this.

Zellerich avatar Apr 08 '22 10:04 Zellerich