supabase-js
supabase-js copied to clipboard
TS `ParserError` for spread operation in `select`
Bug report
- [x] I confirm this is a bug with Supabase, not with my own application.
- [x] I confirm I have searched the Docs, GitHub Discussions, and Discord.
Describe the bug
See the screenshot below.
To Reproduce
https://github.com/FHFHockey-dev/fhfhockey.com/blob/101a0533f56581e1c699f9a7ccad2c9f856c1053/web/components/LineCombinations/utilities.ts#L45
const { data: lineCombinations } = await supabase
.from("lineCombinations")
.select(
"gameId, teamId, forwards, defensemen, goalies, ...games (startTime)"
)
.eq("teamId", teamId)
.in("gameId", [last10Games[0].id, last10Games[1].id])
.order("games(startTime)", { ascending: false })
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
System information
- OS: Windows
- VSCode
- Version of supabase-js: 2.39.8
- Version of Node.js: v20.11.1