我正尝试在一个电子应用程序中使用,但在应用程序窗口中,我在chrome控制台中得到以下错误:
Uncaught TypeError: Cannot read property '_handle' of undefined
at file:///[...]/assets/js/bundle.js:38727:15
at Array.forEach (native)
at module.exports (file:///[...]/assets/js/bundle.js:38726:36)
at Object.<anonymous> (f
我一直收到这个错误: error in ./node_modules/keytar/build/Release/keytar.node
Module parse failed: Unexpected character '�' (1:2)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Sour
我使用nklayman/vue-cli-plugin-electron-builder创建了一个用Vue/Vuex编写的电子应用程序。它附带了main.js,background.js文件,包括Vue组件的起点。但是我不能让事件工作。我在下面的尝试在渲染时产生了Uncaught ReferenceError: __dirname is not defined (编译就可以了)。 组件: Splash.vue <template>
<div @click="open">open</div>
</template>
目前,我正在尝试在我的电子应用程序中设置系统/亮/暗模式切换器。对于电子应用程序,我使用了electron-vue库,然后将电子版本升级到7.3.2。 所以现在我想,我可以使用来自电子的新的nativeTheme接口来创建这个新函数。但现在的问题是,当我导入nativeTheme时,它是未定义的: TypeError: Cannot set property 'themeSource' of undefined
at VueComponent.theme (Settings.vue?e12e:62)
at Watcher.run (vue.esm.js?a02
使用Vite构建应用程序时,我在电子内部得到以下错误:
index.c160f204.js:9 DOMException: Failed to execute 'querySelector' on 'Document': 'link[href="/C:UsersrankDocumentsSchoolCheckInElectronReaderdist/assets/Home.b0f26e4d.js"]' is not a valid selector.
在我看来,构建的代码中的路径已经删除了斜杠,但是我不知道如何解决这个问题,因为它
我用编写了一个c++模块,用编译了它,现在我想在我的electron-vue应用程序中使用它。如果我在没有electron-vue的项目中使用这个模块,它可以工作。但是当我尝试在我的electron-vue应用程序中使用它时,我总是得到这样的错误:
App threw an error during load
TypeError: Cannot read property 'indexOf' of undefined
at Function.getFileName (D:\temp\test2\node_modules\bindings\bindings.js:
我目前正在开发一个电子应用程序,我能够生成.app和.pkg的macOS操作系统。虽然我可以从生成的.app运行它,但是当我试图上传.pkg (马斯)时,在AppStore连接上会出现以下错误:
CFBundleIdentifier Collision -
The Info.plist CFBundleIdentifier value 'org.phantomjs' of 'phantomjs'
is already in use by another application.
我尝试将electron-builder电子更新为最新的稳定版本(2.0.9),并
我试图在npm中使用Vue CLI包创建一个电子应用程序,但是在使用傀儡机的过程中,我得到了以下错误消息。
Uncaught ReferenceError: __dirname is not defined
at eval (webpack-internal:///./node_modules/electron/index.js:4)
at Object../node_modules/electron/index.js (chunk-vendors.js:2014)
at __webpack_require__ (app.js:849)
at fn (app.j
我正在尝试在Electron JS上使用vue路由器和应用程序。如果我在渲染页面上使用路由器,那么路由器的工作就完成了。但我不明白如何转换到页面,例如,使用托盘的“设置”。在尝试转换时,将打开空页。我已经准备了该项目的一个工作示例。这个问题只存在于构建项目中。在开发模式下,一切都运行得很好。
这是我在github上的工作示例。请帮帮忙。
git clone https://github.com/DmtryJS/electron-vue-example.git
cd electron-vue-example
npm install
npm run build
and run dist\win-u
在运行yarn之后,我使用vue-cli生成了带有vue-cli的electron-vue scaffold,我使用yarn run dev启动了应用程序。默认情况下,我会收到以下错误:
? Electron -------------------
Debugger listening on ws://127.0.0.1:5858/189cf481-dd71-43bf-be88-90673ee0aae1
For help see https://nodejs.org/en/docs/inspector
? ----------------------------
? Elect
这是元素+消息框在我构建的最小页面上的外观:
我还以为它在上会长得像。
我使用Vue和vite和ElementPlus。我从vite和element +文档中复制了设置。我玩了很多其他的元素,他们都渲染正确。可以重现问题的最小App.vue组件:
<template>
<el-button text @click="open">Click to open the Message Box</el-button>
</template>
<script setup>
import { ElMessageBox
我正在尝试在一个vue电子项目中使用bcrypt-package,但是当我尝试运行它时,出现了一个N-api版本问题: Uncaught Error: The N-API version of this Node instance is 1. This module supports N-API version(s) 3. This Node instance cannot run this module. 我正在运行节点12.16.1。 我在documentation上读到了关于N-API的信息,根据版本矩阵,我不可能安装版本1。但是我找不到任何关于如何安装/配置/管理这些N-API版本的