question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Everything inside b-card renders 'undefined'

See original GitHub issue

- Operating system Windows 10 - Browser and version Chrome - Version of Bootstrap-Vue that you are using bootstrap-vue@2.0.0-rc.11

Everything I put in any bootstrap-vue elements renders as undefined:

<template>
    <b-card>
        test
    </b-card>
</template>

Returns the following output: image

I’m using a project created with vue-cli and in my main.js have the required lines: image

It looks like other people have encountered the same problem: https://stackoverflow.com/questions/50120964/bootstrap-vue-v-tabs-inside-v-card-renders-undefined

Any idea what I’m doing wrong?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
xforcecommented, Nov 3, 2018

Have been hitting the same issues, I did some debugging, as it turns out this seems to be most likely caused by something related to vue-class-component.
As I am not really familiar with any of the vue code I was not able to really pin point anything, but I have some more information that may be useful.

  1. This only seems to happen when you have ‘mixed’ components, as in there is one component that doesn’t use the @Component decorator in your own code.
  2. Replacing https://github.com/bootstrap-vue/bootstrap-vue/blob/dev/src/components/card/card-body.js#L59 with a spread of the array for the push, like cardBodyChildren.push(...slots().default) does fix it even when using ‘mixed’ components. Literally no idea why…

TBH I have no idea why that is or what happens, just thought I would share what I was able to find out.

Anyway I will keep digging a bit and share when/if I find anything…

3reactions
ekosynthcommented, Oct 26, 2018

Why closed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Card component is not rendering anything. React bootstrap
I feel like the logic in your code isn't sound. First of all, useState's product doesn't seem to be used OR set (at...
Read more >
Template variable warning: 'FALSE' is undefined when ...
What I'm trying to do with the template below is to watch for {Ok } as it comes in and display it as...
Read more >
createStackNavigator - React Navigation
This can be undefined in case the screen animating is the last one. progress - Animated node representing the progress value of the...
Read more >
Error in render: "TypeError: Cannot read property 'length' of ...
[Vue warn]: Error in render: "TypeError: Cannot read property 'length' of undefined. Hi, I am making a simple quiz with laravel and vue...
Read more >
Passing Props to a Component - React Docs
Now you can configure Avatar to render in many different ways with different ... is only used if the size prop is missing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found