Sorry to bother you, I'm having some issues if I add in my main.ts HighchartsVue. The following error appears:
Argument of type '(vue: typeof import("e:/www/myproject/node_modules/vue/dist/vue"), options?: ChartOptions | undefined) => void' is not assignable to parameter of type 'Plugin_2'.
Type '(vue: typeof import("e:/www/myproject/node_modules/vue/dist/vue"), options?: ChartOptions | undefined) => void' is not assignable to type 'PluginInstallFunction & { install?: PluginInstallFunction | undefined; }'.
Type '(vue: typeof import("e:/www/myproject/node_modules/vue/dist/vue"), options?: ChartOptions | undefined) => void' is not assignable to type 'PluginInstallFunction'.
Types of parameters 'vue' and 'app' are incompatible.
Type 'App<any>' is missing the following properties from type 'typeof import("e:/www/myproject/node_modules/vue/dist/vue")': compile, defineCustomElement, useCssModule, u
Also, as I told you I'm not able to manage to do it like you are sending it to me...
I'm using:
"vue": "^3.2.37", this are the dependencies of "highcharts": "^11.0.1",
"highcharts-vue": "^1.4.2","typescript": "^5.0.4",
This is the code I use to work normal charts:
https://codepen.io/maitels/pen/wvQwpOB you can added to the sandbox and check it (sandbox didn't save this part of the code and I've being trying to send it to you several times), as I told you, If I do it with this component: <highcharts :constructorType="'stockChart'" class="hc" :options="chartOptions" ref="chart"></highcharts> it doesn't appear or work.... But if I do it with {Chart} it works with normal components. The issue is that I need to use stock. And I just want to make a little ball of wool and cry because it doesn't work.
My main.ts: import '@vuepic/vue-datepicker/dist/main.css'
import axios from 'axios'
import { createPinia } from 'pinia'
import { createApp } from 'vue'
import HighchartsVue from "highcharts-vue";
stockInit(Highcharts);
import App from './App.vue'
import router from './router'
const pinia = createPinia()
customYupMethods();
const app = createApp(App)
app.use(pinia)
app.use(router)
app.use(HighchartsVue);
app.mount('#app')