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

quill Overwriting modules/imageResize with #124

Open
cvalues opened this issue Jun 23, 2021 · 6 comments
Open

quill Overwriting modules/imageResize with #124

cvalues opened this issue Jun 23, 2021 · 6 comments

Comments

@cvalues
Copy link

cvalues commented Jun 23, 2021

Hi all,

i am getting this warning message with my nuxt implementation:

quill Overwriting modules/imageResize with ƒ t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),this.initializeModules=function(){n.removeModules(),n.modules=n.moduleClasses.map(function(t){return new(l[t]||t)…

nuxt.config.js

  build: {
  plugins: [
      new webpack.ProvidePlugin({
        'window.Quill': 'quill/dist/quill.js',
        'Quill': 'quill/dist/quill.js'
      })
    ],
}
import Quill from 'quill'
import VueQuillEditor from 'vue-quill-editor'
import ImageResize from 'quill-image-resize-module'
Quill.register('modules/imageResize', ImageResize)

import {ImageDrop} from 'quill-image-drop-module'
Quill.register('modules/imageDrop', ImageDrop)

How to get rid of it?

KR

@ghost
Copy link

ghost commented Oct 14, 2021

Comment Out The Following:

Quill.register('modules/imageResize', ImageResize)

And

Quill.register('modules/imageDrop', ImageDrop)

@cvalues
Copy link
Author

cvalues commented Oct 14, 2021

Hi,

this results in: the modules work no longer and the warnings still come

quill.js?9339:2037 quill Cannot import modules/imageDrop. Are you sure it was registered?

KR,

@ghost
Copy link

ghost commented Oct 15, 2021

I didn't note the fact that you're on a nuxt project, 'coz then I was gonna say, try moving those imports to the app.js file. I had the same problem when I imported them in the component but the problem left when I moved them to the app.js file.

@Kolozuz
Copy link

Kolozuz commented Dec 7, 2022

Comment Out The Following:

Quill.register('modules/imageResize', ImageResize)

And

Quill.register('modules/imageDrop', ImageDrop)

This worked for me, maybe cuz I am not using import, I'm using a script src tag

@cvalues
Copy link
Author

cvalues commented Dec 7, 2022

seems to work now..thanks alot!

@asjad2
Copy link

asjad2 commented Jul 30, 2024

I didn't note the fact that you're on a nuxt project, 'coz then I was gonna say, try moving those imports to the app.js file. I had the same problem when I imported them in the component but the problem left when I moved them to the app.js file.

this worked for me. Thanks

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

3 participants