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

Nuxt compatibility #3

Closed
bovas85 opened this issue Jan 5, 2018 · 7 comments
Closed

Nuxt compatibility #3

bovas85 opened this issue Jan 5, 2018 · 7 comments

Comments

@bovas85
Copy link

bovas85 commented Jan 5, 2018

I managed to get this plugin to work on nuxt, but I do get a barebones in the html which isn't ideal.

Is there any recommended way to load this for SSR?

[Vue warn]: Unknown custom element: <component> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <TransitionGroup>
       <FadeTransition>
         <NoSsr>
           <Pages/storesAndServices/index.vue> at pages/stores-and-services/index.vue
             <Nuxt> at .nuxt/components/nuxt.vue
               <Default> at layouts/default.vue
                 <Root>
...
@cristijora
Copy link
Collaborator

Hi @bovas85 Will look into that since I will have to use this in nuxt myself.

@bovas85
Copy link
Author

bovas85 commented Jan 5, 2018

Cheers @cristijora

cristijora added a commit that referenced this issue Jan 5, 2018
@cristijora
Copy link
Collaborator

Released a new version. If you can give feedback on that @bovas85 would be awesome

@bovas85
Copy link
Author

bovas85 commented Jan 5, 2018

It seems fine @cristijora , although I can't override the tag.

Some people would probably need this to be a customisable tag (like for transition-group being a ul)

@cristijora
Copy link
Collaborator

@bovas85 Could you please tell what version of Vue are you using ?
Each transition component is using $attrs and $listeners which should make it possible to override any prop from transition/transition-group components.
This feature unfortunately is only available in vue 2.4 and above

@cristijora
Copy link
Collaborator

Just to be sure, added a tag prop to components. Should work now.
This is available in a new version 0.2.2

@bovas85
Copy link
Author

bovas85 commented Jan 5, 2018

I'll test it tomorrow. I have 2.4 Vue on Nuxt latest

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

2 participants