Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

ReferenceError: navigator is not defined #5470

Description

@mohinishsharma

im using node version of this code so when is start electron app the this error occurs!!!! anyone knows the solution for this..

the error is

ReferenceError: navigator is not defined
at F:\mEdit\node_modules\codemirror\lib\codemirror.js:18:17
at userAgent (F:\mEdit\node_modules\codemirror\lib\codemirror.js:11:82)
at Object. (F:\mEdit\node_modules\codemirror\lib\codemirror.js:14:2)
at Object. (F:\mEdit\node_modules\codemirror\lib\codemirror.js:9697:3)
at Module._compile (module.js:642:30)
at Object.Module._extensions..js (module.js:653:10)
at Module.load (module.js:561:32)
at tryModuleLoad (module.js:504:12)
at Function.Module._load (module.js:496:3)
at Module.require (module.js:586:17)

thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions