AMD Loading
See original GitHub issueHey 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:
- Created 6 years ago
- Comments:6
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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?