A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/tzfun/vue-web-terminal/issues/72 below:

将vue-web-terminal导入vue中出现typescript错误 · Issue #72 · tzfun/vue-web-terminal · GitHub

版本: 3.2.2
使用了typescript
main.ts

import { createApp } from "vue";
import App from "./App.vue";
import "./registerServiceWorker";
import router from "./router";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import 'vue-web-terminal/lib/theme/dark.css'
import Terminal from "vue-web-terminal";
import echarts from 'echarts';
const app = createApp(App);
app.use(router).use(Terminal).use(ElementPlus).mount("#app");
app.config.globalProperties.$echarts = echarts;
ERROR in src/main.ts:11:21
TS2345: Argument of type '__VLS_WithTemplateSlots<DefineComponent<{ title: { type: StringConstructor; default: string; }; name: { type: StringConstructor; default: string; }; initLog: { type: { (arrayLength: number): Message[]; (...items: Message[]): Message[]; new (arrayLength: number): Message[]; new (...items: Message[]): Message[]; ... 4...' is not assignable to parameter of type 'Plugin<[]>'.
  Property 'install' is missing in type 'ComponentPublicInstanceConstructor<{ $: ComponentInternalInstance; $data: {}; $props: { title?: string | undefined; name?: string | undefined; initLog?: Message[] | undefined; ... 36 more ...; "onOn-inactive"?: ((...args: any[]) => any) | undefined; }; ... 10 more ...; $watch<T extends string | ((...args: any) => an...' but required in type '{ install: (app: App<any>) => any; }'.
     9 | import echarts from 'echarts';
    10 | const app = createApp(App);
  > 11 | app.use(router).use(Terminal).use(ElementPlus).mount("#app");
       |                     ^^^^^^^^
    12 | app.config.globalProperties.$echarts = echarts;

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4