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.

breadcrumb error on Vue/ SSR

See original GitHub issue

Hi,

I use Vue, with Server Side Rendering and Bootstrap-vue 0.14.0.

When I reproduce the exemple here on your website https://bootstrap-vue.github.io/docs/components/breadcrumb , I get a warning from SSR with b-breadcrumb :

[Vue warn]: The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.

Maybe the problem is this one, the code look like this :

<section id="breadcrumb" class="row no-gutters align-items-center">
    <div class="container extra-padding">
        <div class="row">
            <div class="col">
                <ol class="breadcrumb">
                    <li class="breadcrumb-item"><a **active-class="active"** href="#">Admin</a></li>
                    <li class="breadcrumb-item"><a **active-class="active"** href="#">Manage</a></li>
                    <li class="breadcrumb-item active"><span>Library</span></li>
                </ol>
            </div>
        </div>
    </div>
</section>

Like you see, the attribute on is active-class=“active”.

The active-class=“active” is not a valid attribute, maybe the problem is there ? Error: Attribute active-class not allowed on element a at this point.

Is your code is compatible with SSR ?

Thanks for the help,

Hugo

github_iconTop GitHub Comments

hvalcourtSerdycommented, Jun 19, 2017

Ok, I will wait for merge, and test if the issue is fixed. Thanks!

1reaction
alexsasharegancommented, Jun 19, 2017

You know what, I think I fixed this. The problem appears to be around proxying the correct props from breadcrumb to the link component. PR #520 addresses this and appears to fix it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding breadcrumbs in vue application - Stack Overflow
To end, I just found this "Very simple Vue breadcrumbs in 40 lines of code" ... that it didn't work with SSR so...
Read more >
[Solved]-Adding breadcrumbs in vue application-Vue.js
I was happily using the vue-2-crumbs plugin however then discovered that it didn't work with SSR so created my own component. ... My...
Read more >
A case of Server Side Rendering (SSR) and Googlebot not ...
breadcrumbs. length) solved the issue because now the function only runs once the this. post. breadcrumbs exists and has a length.
Read more >
Breadcrumbs - Quasar Framework
The QBreadcrumbs Vue component is a navigational aid for your UI. It allows users to keep track of their location within programs, documents,...
Read more >
Getting error only in production mode - #5 by pkarw ... - Vue Storefront
This issue is related to the CSR/SSR DOM mismatch. We discussed it on Slack - it's probably related to breadcrumbs issue. Please do...
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