Open wangjingithub opened 3 years ago
λ yarn run build yarn run v1.22.10 warning package.json: No license field $ node .electron-vue/build.js && electron-builder
/_ \ /\ __ __ /\ \ /_ \ /\ \ \//\ \ / ,.`\ \ \ ,_\ / ,_\ ____ \ \ _ /\ \/\ \ /_\ \//\ \ _\ \ _\ \ /\ / \ \ \/ /_, `\/_____\ \ \ ,. \ \ _\ \/\ \ _\ _ /\ ,. \ /_\ _\ \ \ _ \/_/\/__/ \ __/ \ __/ \ \ \ /__\ __\ \// \// \ __\ \// \// \// \/_/ \/_/ \/ / \/__/
(node:13100) UnhandledPromiseRejectionWarning: ReferenceError: Multispinner is not defined
at build (D:\Demo\electron-demo\my-project.electron-vue\build.js:38:13)
at Object.node --trace-warnings ...
to show where the warning was created)
(node:13100) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:13100) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
• electron-builder version=20.44.4
• loaded configuration file=package.json ("build" field)
• writing effective config file=build\builder-effective-config.yaml
• no native production dependencies
• packaging platform=win32 arch=x64 electron=2.0.18 appOutDir=build\win-unpacked
Error: Application entry file "dist\electron\main.js" in the "D:\Demo\electron-demo\my-project\build\win-unpacked\resources\app.asar" does not exist. Seems like a wrong configuration.
at error (D:\Demo\electron-demo\my-project\node_modules\app-builder-lib\out\asar\asarFileChecker.js:44:14)
at D:\Demo\electron-demo\my-project\node_modules\app-builder-lib\src\asar\asarFileChecker.ts:30:4
at Generator.next (
How to solve this problem?
Just install the dependency.
npm i multispinner
and then import it in .electron-vue/build.js
const Multispinner = require('multispinner')
It's just a temporary solution.
Application entry file "dist\electron\main.js" in the "D:\Demo\electron-demo\my-project\build\win-unpacked\resources\app.asar" does not exist. Seems like a wrong configuration.