Skip to content

Uncaught TypeError: Cannot read property 'document' of undefined #41

Open
@wxfred

Description

@wxfred

I'm using electron + vue-cli-plugin-electron-builder, in dev mode, no error occur, while the final production bundle appear white screen with an error message in console.
I checked the source code of vue-plotly, found that it is still using plotly.js while official recommend is plotly.js-dist. After a little bit source code changes switching to the new package, the error disappeared.
Please update the dependence from plotly.js to plotly.js-dist.

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