Currently, I am facing an issue while attempting to integrate Semantic-UI-Vue
into my Vue project. Upon trying to execute Vue.use(SuiVue)
, the following error message is displayed:
Argument of type 'typeof import("semantic-ui-vue")' is not assignable to parameter of type 'PluginObject<{}> | PluginFunction<{}>'.\n Type 'typeof import("semantic-ui-vue")' is not assignable to type 'PluginFunction<{}>'.\n Type 'typeof import("semantic-ui-vue")' provides no match for the signature '(Vue: VueConstructor, options?: {} | undefined): void'."
To address this, I have generated a .d.ts
file that enables the importation of SuiVue:
declare module 'semantic-ui-vue'{}
Subsequently, it is imported in my app.ts
as follows:
import * as SuiVue from 'semantic-ui-vue';
Is there a solution to make this plugin functional within a TypeScript-based project without having to alter global TypeScript configurations like disabling noImplicitAny
?