Skip to content
This repository was archived by the owner on Mar 11, 2020. It is now read-only.
This repository was 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

@JamieBohannaWebDev

Description

@JamieBohannaWebDev

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 [email protected] 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions