Chartjs-ChartJS shows up and disappears

2๐Ÿ‘

I had the same issue.
The problem was from the defer loading of the app.js in the layout.

<script src="{{ asset('js/app.js') }}" defer></script>

It was loading after my and a Vue instanciation was created. I think this is why the chart was disappearing.

I hope it helps someone.

0๐Ÿ‘

The solution which was working for me:

  • Remove async and defer from app.js

<script async src="{{ asset('js/app.js') }}" defer></script>

Leave a comment