nvms/vue-atlas

Notification component doesn't work standalone

simioluwatomi opened this issue · 0 comments

What version of vue-atlas are you using?
2.1.8

Steps to reproduce:

  1. import { VaNotification } from "vue-atlas/src/Notification";
  2. Vue.use(VaNotification);
  3. use the code sample provided here

What is expected?

That notification shows on the page

What is actually happening?

Unknown custom element <va-button> is thrown by Vue.

To solve this, one has to import the button component. Not a big deal.

  1. Button component imported

What happens next?

Cannot read property 'warning'/'success'/'info'/'danger' of undefined" is thrown by Vue.

Any additional comments? (optional)
The only solution to this was to import all of the package

import Va from 'vue-atlas
Vue.use(Va);

Is there a better way to solve this currently? Importing the whole package (~630kb) considering that I'm using less than 5 components from the bunch isn't pretty