'TypeError: fs.existsSync is not a function' ReactJS and Electron

I’m having an issue where I’m getting a TypeError: fs.existsSync is not a function error when my React App loads.

I’m trying to add functionality to my custom MacOS buttons, however, when I seem to import {remote} from 'electron', I get that error.

This is the component source code: https://sourceb.in/1ffad505cd.jsx This is the error generated in the console: https://sourceb.in/8c01058284.txt

It looks to be an Electron issue but I can’t seem to figure out why.

Any help or advice would be much appreciated.

Download script demo [LINK]
Download script demo [LINK 2]
Download script demo [LINK 2]
Professor Asked on November 9, 2020 in php.
Add Comment
2 Answer(s)

I’m having an issue where I’m getting a TypeError: fs.existsSync is not a function error when my React App loads.

I’m trying to add functionality to my custom MacOS buttons, however, when I seem to import {remote} from 'electron', I get that error.

This is the component source code: https://sourceb.in/1ffad505cd.jsx This is the error generated in the console: https://sourceb.in/8c01058284.txt

It looks to be an Electron issue but I can’t seem to figure out why.

Any help or advice would be much appreciated.

Download demo
Professor Answered on November 9, 2020.
Add Comment

I’m having an issue where I’m getting a TypeError: fs.existsSync is not a function error when my React App loads.

I’m trying to add functionality to my custom MacOS buttons, however, when I seem to import {remote} from 'electron', I get that error.

This is the component source code: https://sourceb.in/1ffad505cd.jsx This is the error generated in the console: https://sourceb.in/8c01058284.txt

It looks to be an Electron issue but I can’t seem to figure out why.

Any help or advice would be much appreciated.

Download demo
Professor Answered on November 9, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.