Skip to content
This repository has been archived by the owner on Mar 11, 2020. It is now read-only.

"export 'DOCUMENT' was not found in '@angular/platform-browser' Fix for Angular 8 #71

Open
JamieBohannaWebDev opened this issue Jan 10, 2020 · 0 comments

Comments

@JamieBohannaWebDev
Copy link

The documentation for Angular 8 is outdated.

It states to run npm install ngx-quill-editor --save but this installs an old version of quill.

By running npm install ngx-quill@3.0.0 this fixed it.

After doing that however, I got the following error:

export 'DOCUMENT' was not found in '@angular/platform-browser'.

Withing /node_modules/ngx-quill/src/quill-editor.component.ts, on line 4 is:

import { DOCUMENT } from '@angular/platform-browser';

Please change this to
import { DOCUMENT } from '@angular/common';

I believe this changed in Angular 4/5.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant