Notification component doesn't work standalone
simioluwatomi opened this issue · 0 comments
simioluwatomi commented
What version of vue-atlas are you using?
2.1.8
Steps to reproduce:
import { VaNotification } from "vue-atlas/src/Notification";
Vue.use(VaNotification);
- 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.
- 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