Skip to content
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

Vue 版本的图片上传报 Uncaught (in promise) TypeError: selectFiles is not a function #19

Open
hspprogrammer opened this issue Dec 27, 2023 · 3 comments

Comments

@hspprogrammer
Copy link

原因是const selectFiles = require("select-files").default;需要加default

@yumengzhong
Copy link

我也遇到了这个问题,版本是 @bytemd/vue-next": "1.21.0","bytemd": "1.21.0"

有其他解决方案吗,也不能去他的源码里改吧

@LinOneZ
Copy link

LinOneZ commented Apr 28, 2024

遇到加一

@ah-sc
Copy link

ah-sc commented Jul 29, 2024

通过添加 webpack alias配置,将 select-files 指向本地文件可以解决:
config.resolve.alias.set('select-files', require.resolve('./src/common/select-files'));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants