编译失败,发布的啥版本呀

提问 未结 3 134
思福泰
思福泰 VIP2 2022-11-11
悬赏:20积分
版本:renren-security 3.5企业版 开发环境:npm run build
src/views/demo/charts.vue:30:5 - error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. 30 [THEME_KEY]: "westeros" ~~~~~~~~~~~ src/layout/setting/index.vue:55:31 - error TS2322: Type '() => void' is not assignable to type 'MouseEvent'. 55 <div class="copybtn" :onClick="onCopySetting"> ~~~~~~~ node_modules/_@vue_runtime-dom@3.2.41@@vue/runtime-dom/dist/runtime-dom.d.ts:1401:3 1401 onClick: MouseEvent ~~~~~~~ The expected type comes from property 'onClick' which is declared here on type 'ElementAttrs<HTMLAttributes>' src/main.ts:83:8 - error TS2345: Argument of type '{ version: string; install: (app: App<any>, options?: Partial<ConfigProviderProps> | undefined) => void; }' is not assignable to parameter of type 'Plugin_2'. Type '{ version: string; install: (app: App<any>, options?: Partial<ConfigProviderProps> | undefined) => void; }' is not assignable to type '{ install: PluginInstallFunction; }'. Types of property 'install' are incompatible. Type '(app: App<any>, options?: Partial<ConfigProviderProps> | undefined) => void' is not assignable to type 'PluginInstallFunction'. Types of parameters 'app' and 'app' are incompatible. Type 'import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.41@@vue/runtime-core/dist/runtime-core").App<any>' is not assignable to type 'import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.44@@vue/runtime-core/dist/runtime-core").App<any>'. The types of 'config.errorHandler' are incompatible between these types. Type '((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => void) | undefined' is not assignable to type '((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => void) | undefined'. Type '(err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => void' is not assignable to type '(err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => void'. Types of parameters 'instance' and 'instance' are incompatible. Type 'ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null' is not assignable to type 'ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null'. Type 'ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>' is not assignable to type 'ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null'. Type 'ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>' is not assignable to type 'ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>'. Type 'ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>' is not assignable to type '{ $: ComponentInternalInstance; $data: {}; $props: {}; $attrs: Data; $refs: Data; $slots: Readonly<InternalSlots>; $root: ComponentPublicInstance<...> | null; ... 6 more ...; $watch(source: string | Function, cb: Function, options?: WatchOptions<...> | undefined): WatchStopHandle; }'. The types of '$.type' are incompatible between these types. Type 'import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.44@@vue/runtime-core/dist/runtime-core").ConcreteComponent<{}, any, any, import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.44@@...' is not assignable to type 'import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.41@@vue/runtime-core/dist/runtime-core").ConcreteComponent<{}, any, any, import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.41@@...'. Type 'ComponentOptions<{}, any, any, ComputedOptions, MethodOptions, any, any, any>' is not assignable to type 'ConcreteComponent<{}, any, any, ComputedOptions, MethodOptions>'. Type 'ComponentOptions<{}, any, any, ComputedOptions, MethodOptions, any, any, any>' is not assignable to type 'FunctionalComponent<{}, any>'. Types of property 'compatConfig' are incompatible. Type 'CompatConfig | undefined' is not assignable to type 'CompatConfig | undefined'. Two different types with this name exist, but they are unrelated. Type 'CompatConfig' is not assignable to type 'CompatConfig | undefined'. Type 'CompatConfig' is not assignable to type 'CompatConfig'. Two different types with this name exist, but they are unrelated. Type 'CompatConfig' is not assignable to type '{ MODE?: 3 | 2 | ((comp: Component<any, any, any, ComputedOptions, MethodOptions> | null) => 3 | 2) | undefined; }'. Types of property 'MODE' are incompatible. Type '3 | 2 | ((comp: import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.44@@vue/runtime-core/dist/runtime-core").Component<any, any, any, import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core...' is not assignable to type '3 | 2 | ((comp: import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.41@@vue/runtime-core/dist/runtime-core").Component<any, any, any, import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core...'. Type '(comp: Component<any, any, any, ComputedOptions, MethodOptions> | null) => 3 | 2' is not assignable to type '3 | 2 | ((comp: Component<any, any, any, ComputedOptions, MethodOptions> | null) => 3 | 2) | undefined'. Type '(comp: import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.44@@vue/runtime-core/dist/runtime-core").Component<any, any, any, import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.44@@...' is not assignable to type '(comp: import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.41@@vue/runtime-core/dist/runtime-core").Component<any, any, any, import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.41@@...'. Types of parameters 'comp' and 'comp' are incompatible. Type 'import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.41@@vue/runtime-core/dist/runtime-core").Component<any, any, any, import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.41@@vue/run...' is not assignable to type 'import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.44@@vue/runtime-core/dist/runtime-core").Component<any, any, any, import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.44@@vue/run...'. Type 'ComponentOptions<any, any, any, ComputedOptions, MethodOptions, any, any, any>' is not assignable to type 'Component<any, any, any, ComputedOptions, MethodOptions> | null'. Type 'ComponentOptions<any, any, any, ComputedOptions, MethodOptions, any, any, any>' is not assignable to type 'FunctionalComponent<any, any>'. Types of property 'compatConfig' are incompatible. Type 'CompatConfig | undefined' is not assignable to type 'CompatConfig | undefined'. Two different types with this name exist, but they are unrelated. Type 'CompatConfig' is not assignable to type 'CompatConfig | undefined'. Type 'CompatConfig' is not assignable to type 'CompatConfig'. Two different types with this name exist, but they are unrelated. Type 'CompatConfig' is not assignable to type '{ MODE?: 3 | 2 | ((comp: Component<any, any, any, ComputedOptions, MethodOptions> | null) => 3 | 2) | undefined; }'. Types of property 'MODE' are incompatible. Type '3 | 2 | ((comp: import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.41@@vue/runtime-core/dist/runtime-core").Component<any, any, any, import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core...' is not assignable to type '3 | 2 | ((comp: import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.44@@vue/runtime-core/dist/runtime-core").Component<any, any, any, import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core...'. Type '(comp: Component<any, any, any, ComputedOptions, MethodOptions> | null) => 3 | 2' is not assignable to type '3 | 2 | ((comp: Component<any, any, any, ComputedOptions, MethodOptions> | null) => 3 | 2) | undefined'. Type '(comp: import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.41@@vue/runtime-core/dist/runtime-core").Component<any, any, any, import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.41@@...' is not assignable to type '(comp: import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.44@@vue/runtime-core/dist/runtime-core").Component<any, any, any, import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.44@@...'. Types of parameters 'comp' and 'comp' are incompatible. Type 'import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.44@@vue/runtime-core/dist/runtime-core").Component<any, any, any, import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.44@@vue/run...' is not assignable to type 'import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.41@@vue/runtime-core/dist/runtime-core").Component<any, any, any, import("D:/lijian/myrepos/CeictWebApps/renrenAdmin/security-enterprise-tenant-admin/node_modules/_@vue_runtime-core@3.2.41@@vue/run...'. Type 'ComponentOptions<any, any, any, ComputedOptions, MethodOptions, any, any, any>' is not assignable to type 'Component<any, any, any, ComputedOptions, MethodOptions> | null'. Type 'ComponentOptions<any, any, any, ComputedOptions, MethodOptions, any, any, any>' is not assignable to type 'FunctionalComponent<any, any>'. Type 'ComponentOptionsBase<any, any, any, ComputedOptions, MethodOptions, any, any, any, string, {}, {}, string> & ThisType<...>' provides no match for the signature '(props: any, ctx: Omit<SetupContext<any>, "expose">): any'. 83 .use(ElementPlus, { size: "default" }) ~~~~~~~~~~~ src/utils/utils.ts:228:50 - error TS2345: Argument of type 'T' is not assignable to parameter of type 'Component<any, any, any, ComputedOptions, MethodOptions>'. Type 'T' is not assignable to type 'FunctionalComponent<any, any>'. 228 app.component(comp.name || comp.displayName, component); ~~~~~~~~~ src/utils/utils.ts:225:29 225 export const withInstall = <T>(component: T, alias?: string): T & Plugin => { ~ This type parameter might need an `extends FunctionalComponent<any, any>` constraint. src/utils/utils.ts:225:29 225 export const withInstall = <T>(component: T, alias?: string): T & Plugin => { ~ This type parameter might need an `extends Component<any, any, any, ComputedOptions, MethodOptions>` constraint. Found 4 errors in 4 files. Errors Files 1 src/views/demo/charts.vue:30 1 src/layout/setting/index.vue:55 1 src/main.ts:83 1 src/utils/utils.ts:228
回帖
  • node需要使用14或者16
    0 回复
  • 思福泰
    2022-11-11
    Found 2 errors in 2 files. Errors Files 1 src/views/demo/charts.vue:30 1 src/utils/utils.ts:228 D:\lijian\myrepos\CeictWebApps\renrenAdmin\security-enterprise-tenant-admin>code . D:\lijian\myrepos\CeictWebApps\renrenAdmin\security-enterprise-tenant-admin>node -v v16.18.0
    0 回复
  • img[//cdn.renren.io/3035320221111102629382.png] 我们才安装了nodejs16.18.0,可以正常打包,以上是版本信息。 下面为打包成功的信息: img[//cdn.renren.io/e2e91202211111028094523.png]
    0 回复