vue3-quill
vue3-quill copied to clipboard
vue-router.esm-bundler.js:3264 SyntaxError: The requested module '/node_modules/quill/dist/quill.js?v=beb8b168' does not provide an export named 'default'
Show me your project please.
我今天也遇到了这个问题
一樣遇到問題。
SyntaxError: import not found: default [vue-router.esm-bundler.js:3302:20](http://localhost:3000/node_modules/vue-router/dist/vue-router.esm-bundler.js) triggerError vue-router.esm-bundler.js:3302 pushWithRedirect vue-router.esm-bundler.js:3037 (Async: promise callback) pushWithRedirect vue-router.esm-bundler.js:3031 push vue-router.esm-bundler.js:2966 install vue-router.esm-bundler.js:3380 use runtime-core.esm-bundler.js:3808 <anonymous> main.js:14
用vite開發。
Hi I got this too, using vite; adding "quill" to the vite configuration's optimizeDeps
seems to fix it, i.e.
defineConfig({optimizeDeps: ["quill"]})
seems to do the trick. I got the above idea from vite issue 813
Hi I got this too, using vite; adding "quill" to the vite configuration's
optimizeDeps
seems to fix it, i.e.defineConfig({optimizeDeps: ["quill"]})
seems to do the trick. I got the above idea from vite issue 813
Thank you, davidAtInleague, I solved this problem perfectly by adding the following code to vite.config.js file.
export default defineConfig({
// vue3-quill
optimizeDeps: {
include: ["quill"]
}
});
Hi I got this too, using vite; adding "quill" to the vite configuration's
optimizeDeps
seems to fix it, i.e.defineConfig({optimizeDeps: ["quill"]})
seems to do the trick. I got the above idea from vite issue 813
这个方法对我有效!