T
TanStack4mo ago
inland-turquoise

TanStack router crashses when seeing a .glsl file

Hi I'm doing some stuff with .zarr files and geospatial data. I'm loading a package from: https://github.com/carderne/zarr-gl/tree/main, but it seems somewhere between rollup and tanstack something goes wrong. At runtime I'm getting some crash and information in my browser:
Private field '#version' must be declared in an enclosing class
Private field '#version' must be declared in an enclosing class
Which looks like it is trying to parse a file which is not valid javascript. In the CLI i get some more info:
code: 'PARSE_ERROR',
pos: 9,
id: '/python/zarr-gl/src/shaders/frag.glsl',
loc: {
line: 1,
column: 10,
file: '/python/zarr-gl/src/shaders/frag.glsl'
},
frame: '1 | #version 300 es\n | ^\n2 | precision highp float;\n3 | ',
code: 'PARSE_ERROR',
pos: 9,
id: '/python/zarr-gl/src/shaders/frag.glsl',
loc: {
line: 1,
column: 10,
file: '/python/zarr-gl/src/shaders/frag.glsl'
},
frame: '1 | #version 300 es\n | ^\n2 | precision highp float;\n3 | ',
So, it does look like it's trying to import some assets that it shouldnt touch. Can I configure my way out of this? I probably just want to not touch these?
2 Replies
unwilling-turquoise
unwilling-turquoise4mo ago
is the file in the routes folder by any chance?
eastern-cyan
eastern-cyan4mo ago
can you please post a complete minimal example?

Did you find this page helpful?