Skip to content

Invalid html when mounting a certain html structure #1070

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

Closed
adi-zz opened this issue Dec 18, 2018 · 2 comments
Closed

Invalid html when mounting a certain html structure #1070

adi-zz opened this issue Dec 18, 2018 · 2 comments
Labels

Comments

@adi-zz
Copy link

adi-zz commented Dec 18, 2018

Version

1.0.0-beta.27

Reproduction link

https://codesandbox.io/s/0pvmr5wj9p

Steps to reproduce

  • Open https://codesandbox.io/s/0pvmr5wj9p
  • After the "browser" inside codesandbox.io loads, notice there's no error in codesandbox's Console tab.
  • Click on codesandbox's Tests tab. The one test I wrote will run.
  • See Console.

What is expected?

  • wrapper.html() shoud return a string containing <div class="component-1">Component 1</div> - the content of Component.vue

What is actually happening?

  • a warning Unknown custom element: <Component1> - did you register the component correctly? For recursive components, make sure to provide the "name" option.. Not sure why this appears when test runs.
  • wrapper.html() returns a string containing <component1></component1>

If you remote the <v-container> from Parent.vue, test runs as expected.

@ChuckBorris33
Copy link

ChuckBorris33 commented Dec 18, 2018

We have exactly same issue using vueBootstrap and localVue in tests.

https://codesandbox.io/s/ywr3vw3oxx

This issue exists in version 1.0.0-beta.26 and 1.0.0-beta.27. Reverting to version 1.0.0-beta.25 solves issue.

@BeniRupp
Copy link

I have a similar problem using vuetify and 1.0.0-beta.27: https://codesandbox.io/s/4jqkrk42j7

If there is a custom component which contains any vuetify component, the custom component cannot be found (Unknown custom element) and therefore is not rendered. Removing the vuetify component will cause the expected rendering.

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

No branches or pull requests

4 participants