In the directory /plugin/vue-chartkick, I created a vuechartkick plugin.
import Vue from 'vue'
import Chartkick from 'vue-chartkick'
import Chart from 'chart.js'
Vue.use(Chartkick.use(Chart))
This is the nuxt template section
<div class="pa-4 pa-md-8">
<div class="border-light pa-4 pa-md-12">
<line-chart legend="bottom" :data="series(resultSet)"> </line-chart>
</div>
</div>
After that, I included the file path in the plugins key of our nuxt.config.js file.
plugins: [
'~/plugins/vue-chartkick.js',
],
I encountered an error message stating:
[Vue warn]: Unknown custom element: <line-chart> - did you register the component correctly? For recursive components, make sure to provide the "name" option
Unfortunately, the functionality is not working as expected.