<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to fix $supabase does not exist on type in NUXTJS]]></title><description><![CDATA[<p dir="auto">I'm getting this error when i access my $supabase nuxt plugin in pages/index.vue</p>
<p dir="auto"><img src="https://lankadevelopers.s3.amazonaws.com/26b7aff1-dfc4-44ec-8cb6-23ba8c19dc4f.png" alt="a4fae784-06fc-4828-8262-c642e21aec0f-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto">~/plugins/supabase.js</p>
<pre><code>    import {createClient} from '@supabase/supabase-js'

    export default ({ app },inject) =&gt; {
        
        const supabaseUrl = app.$config.supabaseUrl
        const supabaseKey = app.$config.supabaseApi

        const supabase = createClient(supabaseUrl, supabaseKey)

        inject('supabase', supabase)
    }
</code></pre>
<p dir="auto">i loaded plugin in nuxt config</p>
<pre><code>plugins: [
    {src: '~/plugins/supabase.js', mode : 'client'}
  ],
</code></pre>
<p dir="auto"><strong>Anyone can help to fix this issue, i use typescript with nuxtjs</strong></p>
]]></description><link>https://lankadevelopers.lk/topic/962/how-to-fix-supabase-does-not-exist-on-type-in-nuxtjs</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 03:53:14 GMT</lastBuildDate><atom:link href="https://lankadevelopers.lk/topic/962.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 17 Mar 2023 08:17:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to fix $supabase does not exist on type in NUXTJS on Fri, 17 Mar 2023 08:36:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://lankadevelopers.lk/uid/8">@nubelle</a> Thanks man it works</p>
]]></description><link>https://lankadevelopers.lk/post/4806</link><guid isPermaLink="true">https://lankadevelopers.lk/post/4806</guid><dc:creator><![CDATA[root]]></dc:creator><pubDate>Fri, 17 Mar 2023 08:36:07 GMT</pubDate></item><item><title><![CDATA[Reply to How to fix $supabase does not exist on type in NUXTJS on Fri, 17 Mar 2023 08:19:21 GMT]]></title><description><![CDATA[<p dir="auto">You have to define a type.</p>
<p dir="auto">example :</p>
<pre><code>data(){
      return {
        $supabase :(this as any).$supabase,
      }
    },
</code></pre>
]]></description><link>https://lankadevelopers.lk/post/4805</link><guid isPermaLink="true">https://lankadevelopers.lk/post/4805</guid><dc:creator><![CDATA[Nubelle]]></dc:creator><pubDate>Fri, 17 Mar 2023 08:19:21 GMT</pubDate></item></channel></rss>