vue-masonry-css icon indicating copy to clipboard operation
vue-masonry-css copied to clipboard

Unknown custom element: <masonry>

Open croossin opened this issue 6 years ago • 4 comments

When using masonry as described in the README I get the following error: Unknown custom element: <masonry> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

It does work, however. I just would like to remove those errors from the console.

croossin avatar Aug 17 '18 15:08 croossin

Thanks for reporting Chase. Are you on the latest version of vue? If so, I'll work in a fix in the coming days

On Fri, Aug 17, 2018 at 8:23 AM Chase [email protected] wrote:

When using masonry as described in the README I get the following error: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.

It does work, however. I just would like to remove those errors from the console.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/paulcollett/vue-masonry-css/issues/15, or mute the thread https://github.com/notifications/unsubscribe-auth/AB0Qhl5rpjoszqsXFEdqvOxDfKwuiuwVks5uRuAJgaJpZM4WBwLX .

paulcollett avatar Aug 17 '18 16:08 paulcollett

Yes I am, thank you! Also, any chance you can look at #14 ?

croossin avatar Aug 17 '18 16:08 croossin

I havn't been able to reproduce this error Chase. I've tried masonry across the latest vue-cli project build, via script and all seems to be working ok. Still doesn't mean I havn't missed something.

Stackoverflow suggests this issue could be due to registering the plugin Vue.use(...) after creating your view app new Vue(.... Does this sound like it could be the issue?

paulcollett avatar Aug 19 '18 21:08 paulcollett

Hi @paulcollett , I'm trying to get masonry to work with Nuxt (Duplicate of #19) I don't know, what I'm missing... I just registered the plugin as David wrote. Can you please help me to get this working? I'm moving from my vue.js app to Nuxt and want to keep this component...

ElFischer avatar Nov 04 '19 15:11 ElFischer