© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago
ferpintado

Template literals throwing typescript error in V2

Prior to v2 I used to construct my
select
select
off other variables like so:

.select(
        `
        ${PROPS},
        ${DATABASE}!${FOREIGN_KEY.parent} (
          ${PROPS}
        ),
        ${vendorService.DATABASE}!${FOREIGN_KEY.vendor} (${vendorService.PROPS})
.select(
        `
        ${PROPS},
        ${DATABASE}!${FOREIGN_KEY.parent} (
          ${PROPS}
        ),
        ${vendorService.DATABASE}!${FOREIGN_KEY.vendor} (${vendorService.PROPS})

Now that I am trying to migrate to v2 typescript is throwing an error like the image.

Is there anything I can do to fix that?
Screen_Shot_2022-10-25_at_8.42.19_PM.png
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

SupabaseJS v2 Typescript
SupabaseSSupabase / help-and-questions
4y ago
Identity field throwing error
SupabaseSSupabase / help-and-questions
4y ago
Typescript support in V2 with reading foreign tables
SupabaseSSupabase / help-and-questions
4y ago
auth.users triggers throwing error.
SupabaseSSupabase / help-and-questions
3y ago