I'm using a Vue 3 app with Vite, and the composition API. I'm able to do oruga.notifcation.open() inside of my <script setup></script> components, but not in utility files:
Steps to reproduce
New codebase with any component. Using the Composition API. Create a utility class for oruga notifcations, and try to use it in a component:
Overview of the problem
Oruga version: "^0.5.10" Vuejs version: "^3.2.45" OS/Browser: Chrome
Description
I'm using a Vue 3 app with Vite, and the composition API. I'm able to do
oruga.notifcation.open()
inside of my<script setup></script>
components, but not in utility files:Steps to reproduce
New codebase with any component. Using the Composition API. Create a utility class for oruga notifcations, and try to use it in a component:
Expected behavior
It should be able to open a notification like normal.
Actual behavior
oruga.notification
isn't defined