TanStackT
TanStack9mo ago
2 replies
popular-magenta

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


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  |  ',


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?
Was this page helpful?