When adding a Set that contains a Vue component to my Bard, the Live Preview screen breaks and goes blank.
This issue only happens in the Production control panel Live Preview screen.
When working locally, the Live Preview displays the Set just fine, and I see all the expected data and functionality.
When visiting the actual Live URL on the Production server (while the Set is active), everything looks fine and works as expected.
The only error log I get is from the console:
Console log: site.js TypeError: Cannot read properties of null (reading 'nextSibling')
No errors produced in the laravel log.
As a work-around, I am currently wrapping the Vue component with an {{ if live_preview }}, but this is not ideal, as I would like my control panel users to see the actual data in the live preview screen.
company_cards.antlers.html
{{ if live_preview }}
<div class="rounded-lg bg-slate-100 border border-slate-300 p-5 text-center capitalize animate-pulse">
Company Cards for {{ (state === 'slug') ? (last_segment) : (state) }}
</div>
{{else}}
<company-cards
slug="{{ state === 'slug' ? last_segment : state }}"
advanced-options="{{advanced_options | to_json | entities}}"
></company-cards>
{{ /if}}
Bug description
When adding a Set that contains a Vue component to my Bard, the Live Preview screen breaks and goes blank. This issue only happens in the Production control panel Live Preview screen. When working locally, the Live Preview displays the Set just fine, and I see all the expected data and functionality. When visiting the actual Live URL on the Production server (while the Set is active), everything looks fine and works as expected. The only error log I get is from the console: Console log:
site.js TypeError: Cannot read properties of null (reading 'nextSibling')
No errors produced in the laravel log.As a work-around, I am currently wrapping the Vue component with an
{{ if live_preview }}
, but this is not ideal, as I would like my control panel users to see the actual data in the live preview screen.company_cards.antlers.html
site.js
CompanyCards.vue
How to reproduce
Logs
No response
Environment
Installation
Existing Laravel app