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.

Cant import modules/mention in quill 2.0.0-dev.2 build

See original GitHub issue

I can’t import this module after installing quill development build.

previously in quill 1.3.6 I used this module with the steps bellow:

  1. install using npm install quill-mention --save
  2. import using import "quill-mention"
  3. and adding mention module to quill option
mention: {
            allowedChars: /^[A-Za-z\sÅÄÖåäö]*$/,
            mentionDenotationChars: ["@"],
            source: a_function.bind.(this),
        },

but now it just error Cannot import modules/mention. Are you sure it was registered?, Cannot load mention module. Are you sure you registered it?

there wasn’t any step explained to import this module in the README.md, perhaps my import was wrong? because I see other plugin require to register it using Quill.register(a_module) but this isn’t

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

16reactions
loremapscommented, Feb 5, 2020

For me it worked by registering the module:

import QuillMention from 'quill-mention';

quill.register({ 'modules/mention': QuillMention });

For angular I guess this should work:

import * as QuillNamespace from 'quill';
import QuillMention from 'quill-mention';

const Quill: any = QuillNamespace;
Quill.register({ 'modules/mention': QuillMention }, true);
0reactions
Alec-Aldrine-Lakracommented, Nov 26, 2019

There is a version problem , even I suffered the same issue quill-mention is supported in quill current version and not supported in quill 2.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cant import modules/mention in quill 2.0.0-dev.2 build #36
I can't import this module after installing quill development build. previously in quill 1.3.6 I used this module with the steps bellow: ...
Read more >
How do I fix this error I get whenever I try to register quill-better ...
Whenever I try to register the quill-better-table module. I face major issues. Look at my code below. import { Component , ViewChild, OnInit} ......
Read more >
Adding Quill to Your Build Pipeline
The purpose of the entry files for both builds, quill.js and core.js, is to import and register necessary dependencies. You will likely want...
Read more >
Using Tables In Quill.js With Rails and Stimulus | by Dale Zak
The following will show how to use Stimulus to create a Quill editor as well as add some missing table functionality. Add Quill...
Read more >
Quill-mention demo - CodeSandbox
import "./styles.css"; · import Quill from "quill"; · import mention from "quill-mention"; · const atValues = [ · { id: 1, value: "Fredrik...
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