Skip to content

Cant find window.require with reactjs #455

@pacosta613

Description

@pacosta613

Description

I am experiencing an issue in my Electron application that uses Menubar. I am trying to create a function and pass it to the ReactJS side of the app, but I encounter an error related to window.require. This issue prevents me from achieving the desired functionality.

Steps to Reproduce the Problem

  1. ...
  2. ...
  3. ...

Expected Behaviour

I expected to be able to create a function and pass it to the ReactJS side of my Electron app without encountering errors related to window.require. The function should work as intended.

Actual Behaviour

The issue occurs when I attempt to use window.require in my Electron app. It results in an "Uncaught TypeError" or another error, preventing me from creating the desired function and passing it to the ReactJS side.

Specifications

  • Menubar version: [Please provide the version number of Menubar you are using. You can check this in your project's package.json file or using npm/yarn.]
  • Platform: [Specify the platform you are running your Electron app on, e.g., Windows, macOS, Linux.]
  • Electron version: [Run electron -v or node_modules/.bin/electron -v in your project's directory to get the Electron version.]

Other information

[Include any additional information or context that might be helpful in diagnosing the issue. This could include code snippets, error messages, or any specific configurations you have set up.]

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