You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
按这个方法修改后又报这个错:Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/@dataview_datav-vue3.js?v=745ff770' does not provide an export named 'default' (at main.ts:4:8)
环境:webpack+vue3+ts
在main.ts文件中引入并挂载
import DataV from "@dataview/datav-vue3";
...
app.use(router).use(DataV, { classNamePrefix: "dv-" });
有错误提示,运行时报错不能通过:
import DataV
没有与此调用匹配的重载。
第 1 个重载(共 2 个),“(plugin: Plugin_2<[{ classNamePrefix: string; }]>, options_0: { classNamePrefix: string; }): App”,出现以下错误。
类型“typeof import("d:/workspace/study/dashboard/node_modules/@dataview/datav-vue3/es/index")”的参数不能赋给类型“Plugin_2<[{ classNamePrefix: string; }]>”的参数。
第 2 个重载(共 2 个),“(plugin: Plugin_2<{ classNamePrefix: string; }>, options: { classNamePrefix: string; }): App”,出现以下错误。
类型“typeof import("d:/workspace/study/dashboard/node_modules/@dataview/datav-vue3/es/index")”的参数不能赋给类型“Plugin_2<{ classNamePrefix: string; }>”的参数。ts(2769)
The text was updated successfully, but these errors were encountered: