I am fairly new to Angular 2 and TypeScript. I am using AngularCLI and NPM to create my Angular Project. I have used NPM to install the quill node module into my project. I am now trying to create a component in which I can customize my quill editor through their API.
I am trying to use:
import * as Quill from 'quill';
This is returning a 'cannot find quill module' error.
I have already added
"": "0.0.26",
"quill": "^1.0.4",
to package.json as dependencies.
I tried to reproduce your issue in a pet Angular CLI project generated with the
ng new
command, and it worked fine. Here is the code:Go to you project's
node_modules
folder and look for a folder namedquill
, anyway, even if it is there, delete thenode_modules
folder and runnpm i
command again