Skip to content

[api-extractor] InternalError when analyzing EditorState from draft-js  #1001

@octogonz

Description

@octogonz

@nvh reported an error in issue #949, which on investigation turned out to be a separate issue:

I encountered this error importing the EditorState from draft-js and using it in a class
A minimal reproduction looks like this:

import { EditorState } from "draft-js"
export class Text {
    editorState: EditorState
}

making the editorState private fixes the problem.
Example project:
registerd-as-non-imported.zip
Reproduction steps:
screenshot 2018-11-30 at 16 05 03

The error message was:

The symbol EditorState is being imported after it was already registered as non-imported

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as intendedeffort: easyProbably a quick fix. Want to contribute? :-)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions