Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

127
Views
Quill is not defined when i import from node_modules

I wanna use quill in my project(laravel)

When i require quill from cdn my code working

but when import from node_modules i got this error :

Quill is not defined 

what can i do?

my code :

import 'quill/quill';
var quill = new Quill('#editor', {
    theme: 'snow',
});
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You need to import Quill using the ES6 Syntax or the CommonJS require syntax.

Change the line:

import 'quill/quill';

to ES6 Syntax:

import Quill from 'quill';

Or CommonJS with Require

const Quill = require("quill");

Making the whole thing something like:

const Quill = require("quill");
var quill = new Quill('#editor', {
    theme: 'snow',
});
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!