Skip to content
This repository has been archived by the owner on Jun 22, 2022. It is now read-only.

Notification component doesn't work standalone #160

Open
simioluwatomi opened this issue Jan 11, 2020 · 0 comments
Open

Notification component doesn't work standalone #160

simioluwatomi opened this issue Jan 11, 2020 · 0 comments

Comments

@simioluwatomi
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant