-
Notifications
You must be signed in to change notification settings - Fork 298
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
Error in using uploadImages #279
Comments
In bytemd, |
i had the same bug vue version 2.6.11 |
official vue2 example works, the vue-nuxtjs example can reproduce. |
使用vue2 需将 @bytemd/vue 降低到1.17.1 版本,点击上传图片可正常使用 |
It seems that there is something wrong with Webpack 4 when the code mixes commonjs and esm, i.e., webpack 4 transpile Some issues related to webpack v4: I have come up with 3 solutions just for reference.
resolve: {
alias: {
bytemd$: path.resolve(__dirname, 'node_modules/bytemd/dist/index.mjs'),
'tippy.js$': path.resolve(__dirname, 'node_modules/tippy.js/dist/tippy.esm'),
}
}
resolve: {
mainFields: ['main', 'module']
} I'm not sure the above solutions work, and welcome better solutions or in-depth discussions. |
This issue is stale because it has been open for 60 days with no activity. |
This issue was closed because it has been inactive for 7 days since being marked as stale. |
The text was updated successfully, but these errors were encountered: