Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to register component after updating to v0.4.3 #27

Open
sreecodeslayer opened this issue May 1, 2018 · 5 comments
Open

Failed to register component after updating to v0.4.3 #27

sreecodeslayer opened this issue May 1, 2018 · 5 comments

Comments

@sreecodeslayer
Copy link

The latest version rolled out seems to have an issue registering the component, as mentioned in the setup doc

index.js:57 Uncaught TypeError: Cannot use 'in' operator to search for 'default' in undefined
    at index.js:57
    at vue-notifyjs.min.js:6
    at vue-notifyjs.min.js:6
Unknown custom element: <notifications> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
@cristijora
Copy link
Collaborator

cristijora commented May 1, 2018

@sreecodeslayer Do you mind sharing the code for plugin installation?
Personally, updated in 2 apps and didn't encounter such issues

@bum
Copy link

bum commented May 3, 2018

your demo on jsfiddle does not run instead

@sreecodeslayer
Copy link
Author

The plugin is imported directly from CDN, and then

Vue.use(vueNotifyjs);

and in the base template,

<notifications></notifications>

This works on pre-0.4.3 , and once the unpkg min version changed, the notifications are broken.

Also, you example section, jsFiddle demo and the usage mentioned in Readme, all have different import statement.

Which would be the current and updated usage ?

@cristijora
Copy link
Collaborator

@bum @sreecodeslayer indeed it doesn't work from cdn. Will fix that and release a new version. Apologies

@cristijora
Copy link
Collaborator

@sreecodeslayer the usage (when using npm package(not cdn) is the one from readme)
CDN usage would be the one from jsfiddle

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

No branches or pull requests

3 participants