vue3-quill icon indicating copy to clipboard operation
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'

Open zangtingjun opened this issue 3 years ago • 6 comments

zangtingjun avatar Oct 25 '21 07:10 zangtingjun

Show me your project please.

flyween avatar Oct 26 '21 02:10 flyween

我今天也遇到了这个问题

zqq-nuli avatar Mar 01 '22 03:03 zqq-nuli

一樣遇到問題。 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開發。

frocelu avatar Mar 28 '22 03:03 frocelu

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

davidAtInleague avatar Jun 27 '22 14:06 davidAtInleague

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"]
  }
});

yuziikuko avatar Jul 28 '22 04:07 yuziikuko

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

这个方法对我有效!

link-zh avatar Oct 11 '22 11:10 link-zh