Skip to content

Uncaught reference error: global is not defined #62

Open
@igbominadeveloper

Description

@igbominadeveloper

I just migrated my React app from CRA to Vite and this error
Screenshot 2021-12-14 at 02 47 20

if (typeof global !== 'undefined' && global.localStorage) {

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