kyvg/vue3-notification

Can't use when Vue Options API is disabled

axelkennedal opened this issue · 5 comments

Describe the bug
In a project with Webpack where the Vue Options API is disabled, this library does not work. It builds, but no notifications pop up.

To Reproduce
Steps to reproduce the behavior:

  1. In a project using Webpack, disable the Vue Options API: (set it to false, not true like this screenshot)
    image
  2. Follow the instructions in the README of this GitHub repo for using the composition API
  3. Run Webpack
  4. Try to show a notification

Expected behavior
A notification should show up.

Screenshots
N/a

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Chrome
  • Version 108

Smartphone (please complete the following information):
N/a

Additional context
N/a

Stale issue message

Why was this closed without any comment?

kyvg commented

@axelkennedal,
That library was written with Options API, so it can't work with __VUE_OPTIONS_API__: false flag

kyvg commented

I rewrote this library to Composition API, now it should work with disabled Options API flag