vue-advanced-chat
vue-advanced-chat copied to clipboard
vue-tsc --noEmit && vite build fails
When trying to build with Vue type script check (vue-tsc --noEmit && vite build) build fails with following errors:
node_modules/vue-advanced-chat/types/index.d.ts:1:15 - error TS2305: Module '"vue"' has no exported member 'PluginFunction'.
1 import Vue, { PluginFunction } from 'vue'
~~~~~~~~~~~~~~
node_modules/vue-advanced-chat/types/index.d.ts:143:22 - error TS2304: Cannot find name 'MessageActions'.
143 'message-actions'?: MessageActions
~~~~~~~~~~~~~~
node_modules/vue-advanced-chat/types/index.d.ts:145:21 - error TS2304: Cannot find name 'TemplatesText'.
145 'templates-text'?: TemplatesText
~~~~~~~~~~~~~
node_modules/vue-advanced-chat/types/index.d.ts:181:38 - error TS2507: Type 'typeof import("E:/webprojects/domains/chat.fi.front/vue/node_modules/vue/dist/vue")' is not a constructor function type.
package version: "vue": "^3.2.6" "vite": "^4.2.0" "vue-tsc": "^1.8.24"
Perhaps needs a similar fix like this: https://github.com/primefaces/primevue/pull/1595/commits/bfdf90460adfb820e3e79211e9f05964215bcd4d