question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hey there,

Trying out your project to see if I can implement basic quill cursors on selection-change and text-change. I’m loading modules with RequireJS but am having difficulty with quill-cursors. I’ve listed Quill as a dependency for quill-cursors, however quill-cursors seems to be looking for Quill before instantiation of a Quill instance, which causes the following error.

quill-cursors.js:1804 Uncaught ReferenceError: Quill is not defined
    at Object.<anonymous> (quill-cursors.js:1804)
    at __webpack_require__ (quill-cursors.js:20)
    at Object.rangeFix (quill-cursors.js:75)
    at __webpack_require__ (quill-cursors.js:20)
    at Object.<anonymous> (quill-cursors.js:1817)
    at __webpack_require__ (quill-cursors.js:20)
    at Object.defineProperty.value (quill-cursors.js:66)
    at quill-cursors.js:69

My reasons for migrating to Webpack are piling up, so if this isn’t something you intend to address, maybe I should start the process of making a move.

Thanks for the great work

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
Joeaocommented, May 17, 2017

Here’s a repo to reproduce the error. Kept it minimal for the sake of simplicity. If you have any questions stick them here or on the repo issues, it’s not serving any other purpose. Cheers guy

0reactions
pedrosantacommented, May 26, 2017

Ok, nevermind what I said @Joeao, I’ve updated webpack configuration, because external config for Quill should have different ‘names’ depending on the module packaging/global var.

It should be working properly with your code now. Can you confirm and close the issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why AMD? - RequireJS
Module Purposes§ 1; The Web Today§ 2; CommonJS§ 3; AMD§ 4 ... The AMD loader will give the module an ID based on...
Read more >
Asynchronous module definition - Wikipedia
Asynchronous module definition (AMD) is a specification for the programming language JavaScript. It defines an application programming interface (API) that ...
Read more >
amd-loader - npm
Add the capability to load AMD (Asynchronous Module Definition) modules to node.js. Latest version: 0.0.8, last published: 6 years ago.
Read more >
Asynchronous Module Definition (AMD) With RequireJs
When we say an application is modular, we generally mean it's composed of a set of highly decoupled, distinct pieces of functionality stored...
Read more >
Introduction to AMD Modules - Dojo Toolkit Tutorial
With AMD, you create a module by registering it with the loader. A quick aside here — loader? What's a loader? The loader...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found