Closed MogliCodes closed 1 year ago
Hi Mogli, I suspect that you're not calling usePush in the setup function of your component as displayed in the Quick Start section.
<script setup>
import { usePush } from 'notivue'
const push = usePush()
</script>
I also think you are not following the Nuxt installation section from the official Notivue's documentation.
I've also created a working Nuxt 3 example using StackBlitz.
Please feel free to reopen this issue if you're still experiencing problems with Nuxt.
Hi there!
I saw your post on Reddit and immediately wanted to try out Notivue in a Nuxt 3 application. I followed the guidelines in the Nuxt 3 docs and added a plugin file:
plugins/notivue.client.js
Then I followed step 2 and 3 from your documentation. When I open the app in the browser I get this error:
Cannot read properties of undefined (reading 'push')
Some additional info about the Nuxt app: