![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
electron
宝藏程序员
这个作者很懒,什么都没留下…
展开
-
electron-vue报错:(index):1 Uncaught ReferenceError: require is not defined at (index):1
报错:(index):1 Uncaught ReferenceError: require is not defined at (index):1(index):1 Uncaught ReferenceError: process is not defined at (index):1renderer.js:1 Uncaught ReferenceError: module is not defined at renderer.js:1解决方法:在窗口的web...原创 2021-09-08 09:26:59 · 1734 阅读 · 0 评论 -
electron报错:Error: Electron failed to install correctly, please delete node_modules/electron and try
在win10上在搭建electron-vue项目时,使用npm install命令报错报错:Error: Electron failed to install correctly, please delete node_modules/electron and try installing again解决方法:命令行进入项目中node_modules/electron目录,运行node install.js命令即可...原创 2021-09-07 16:32:39 · 826 阅读 · 0 评论 -
electron报错:Uncaught TypeError: Cannot read property ‘BrowserWindow‘ of undefined
electron版本14+使用remote模块时出现问题,代码如下:const BrowserWindow = require('electron').remote.BrowserWindow;报错:Uncaught TypeError: Cannot read property 'BrowserWindow' of undefined解决方法:新版的 electron 由于安全原因默认关闭了 remote模块,需要在主窗体中开启remote,也就是在webPreferen原创 2021-09-03 08:10:38 · 4631 阅读 · 2 评论