【发布时间】:2019-12-25 10:20:57
【问题描述】:
我遇到了一个问题,即在我的 React 应用加载时我收到 TypeError: fs.existsSync is not a function 错误。
我正在尝试向我的自定义 MacOS 按钮添加功能,但是,当我似乎是 import {remote} from 'electron' 时,我收到了该错误。
这是组件源代码:https://sourceb.in/1ffad505cd.jsx 这是控制台中产生的错误:https://sourceb.in/8c01058284.txt
这似乎是电子问题,但我似乎无法弄清楚原因。
任何帮助或建议将不胜感激。
【问题讨论】:
标签: node.js reactjs electron jsx