在Typescript WebComponent中使用uppy
我正在尝试将 uppy 中。我使用@Open-WC
:npm 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论