Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

133
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda