T
TanStack3d ago
stormy-gold

Vite PreTransform Error

I am running to the following error on latest when loading page:
[vite] (client) Pre-transform error: `super()` is only valid inside a class constructor of a subclass.
[vite] (client) Pre-transform error: `super()` is only valid inside a class constructor of a subclass.
Is therer a known solution for this?
6 Replies
stormy-gold
stormy-goldOP3d ago
A little more context:
7:50:19 AM [vite] Internal server error: `super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class? (831:8)
Plugin: vite-plugin-tanstack-start-create-server-fn
7:50:19 AM [vite] Internal server error: `super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class? (831:8)
Plugin: vite-plugin-tanstack-start-create-server-fn
stormy-gold
stormy-goldOP3d ago
my vite config
No description
stormy-gold
stormy-goldOP3d ago
I suspect I have some bad setup coming from older Vinxi setup. So fixing that is likely my path forward. I’ll look into that shortly
optimistic-gold
optimistic-gold3d ago
I just ran into this as well.
adverse-sapphire
adverse-sapphire3d ago
can you please provide a complete example that reproduces this?
stormy-gold
stormy-goldOP2d ago
Seems my problem was that I needed to upgrade to vite 7

Did you find this page helpful?