你看下项目目录下../node_modules/electron/dist下面的libEGL.dll,如果是88kb就是32位,100kb+就是64位, 下面网址下载你需要的版本即可: electron Mirror 问题九;vue-cli搭配electron-vue生成的项目,dev模式下运行无误.打包时出现了问题Unresolved node modules: vue 解决方案: 使用yarn替代npm安装依赖 问题十;安装...
vue-cli-plugin-electron-builder":"~2.1.1"},"browserslist": ["> 1%","last 2 versions","not dead"],"description":"一个说明","author":"lcl"} vue.config.js module.exports={publicPath:process.env.NODE_ENV==='production'?'./':'/',pluginOptions:{electronBuilder:{nodeIntegration:true,//...
您可以检查package.json文件,确认'vue-cli-plugin-electron-builder'已经列在devDependencies中。此外,确保node_modules文件夹和package-lock.json文件是最新的,可以尝试删除它们并重新运行npm install来重新安装依赖: bash rm -rf node_modules package-lock.json npm install 在Vue项目中引入和使用'vue-cli-plugin-el...
首先,运行electron-serve是正常的,但是运行electron-builder打包成功后,启动就会报错: A JavaScript error occurred in the main process Uncaught Exception: Error: Cannot find module 'reflect-metadata' Require stack: - /Applications/aDemo.app/Contents/Resources/app.asar/node_modules/@nestjs/core/index.js ...
js - at Module._resolveFilename (internal/modules/cjs/loader.js:887:15) at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128) at Module._load (internal/modules/cjs/loader.js:732:27) at Function.f._load (electron/js2c/asar_bundle.js:5:12913) at Module.require (...
I still get an error (Cannot find module 'electron-updater') when I use the latest electron-builder 22.10.5 My package.json : "dependencies": { "axios": "^0.21.1", "blueimp-md5": "^2.18.0", "concurrently": "^5.3.0", "core-js": "^2.6.11", ...
大意就是告诉开发者,如果发现打包后某些模块不工作,需要你在electronBuilder中配置一下! 参考资料 1、Vue CLI Plugin Electron Builder:https://nklayman.github.io/vue-
之前项目中遇到一个问题,使用了脚手架,并且引入了electron-store这个包。在开发模式下是能正常运行的,但是打包后却会包Cannot find module “.” 的问题,类似的issue在github的electron的上也有很多人提到,最终,在那个脚手架的issue下找到了答案 方法 代码语言:javascript ...
$ rimraf src/dist && yarn build && electron-builder build --publish never $ concurrently "yarn build:main" "yarn build:renderer" $ cross-env NODE_ENV=production webpack --config ./.erb/configs/webpack.config.main.prod.babel.js $ cross-env NODE_ENV=production webpack --config ./.erb/...
"vue-cli-plugin-electron-builder": "~2.1.1", "vuex-module-decorators": "^1.0.1" }, "engines": { "node": ">=14.0.0 <15" } } Feb 24, 2022 I finally managed to fix my problem, to be honest I don't know what it was. ...