在Typescript WebComponent中使用uppy

发布于 2025-02-10 13:13:15 字数 680 浏览 2 评论 0原文

我正在尝试将 uppy 中。我使用@Open-WCnpm init @open-wc -destinationpath C:\ service-ui -type脚手架-scaffoldtype app-features-- features--features- TypeScript true-tagname service-ui -writeTodisk true-installDependencies npm

我添加了Uppy依赖性,并完全按照Uppy的“入门指南”中指出的完全导入。尽管如此,该应用程序仍未运行:undured syntaxerror:请求的模块'./../../../../../node_modules/@uppy/dashboard/dashboard/lib/index.js'不提供名为'default'的导出(在uploadui.ts:6:8)

我用我的代码创建了一个repo 。我对不同的模块系统不太熟悉。我在做什么错?

I'm trying to integrate uppy into a webcomponent. I created a fresh typescript project using @open-wc: npm init @open-wc --destinationPath C:\service-ui --type scaffold --scaffoldType app --features --typescript true --tagName service-ui --writeToDisk true --installDependencies npm

I added the uppy dependencies and imported exactly as pointed out in the getting started guide from uppy. Nevertheless, the app does not run: Uncaught SyntaxError: The requested module './../../node_modules/@uppy/dashboard/lib/index.js' does not provide an export named 'default' (at UploadUi.ts:6:8).

I created a repo with my code. I not very familiar with the different module systems. What am I doing wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文