-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
引入包@dataview/datav-vue3并挂载报错 #29
Comments
可以看看这个:http://t.csdn.cn/EuX68 |
按这个方法修改后又报这个错: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) |
Closed
要改 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
环境: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: