TanStack Table version#
v8.21.3
Framework/Library version#
vanilla (through Rails importmap)
Describe the bug and the steps to reproduce it#
I'm using @tan-stack/table-core in vanilla JS without any bundler or Node.js runtime. It seems that createTable() function checks runtime environment for debugging, which throw an exception for my setup.
const M = [t, c, s, a, n, l, p, m, F, r, f, C, h, S, g];
function createTable(e) {
var t, n;
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
I temporarily use a mock process object to workaround. Would it be nicer to check process at first?
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)#
(no need)
Screenshots or Videos (Optional)#
No response
Do you intend to try to help solve this bug with your own PR?#
Yes, I think I know how to fix it and will discuss it in the comments of this issue
Terms & Code of Conduct#
Got the same error, here is the solution I made to bypass that.
bin/importmap pin @tanstack/table-coreIn the umd build, there is no process env check.