Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant find window.require with reactjs #455

Open
pacosta613 opened this issue Oct 30, 2023 · 1 comment
Open

Cant find window.require with reactjs #455

pacosta613 opened this issue Oct 30, 2023 · 1 comment

Comments

@pacosta613
Copy link

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.]

@linonetwo
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants