The error is as follows:
To sum up: webpack can't parse binary or something... There is a discussion on github System: win10 "dependencies": { "core-js": "^3.6.5", "electron-prebuilt": "^1.4.13", "serialport": "^9.2.1", "vue": "^2.6.11" }, "devDependencies": { "@vue/cli-plugin-babel": "~4.5.0", "@vue/cli-plugin-eslint": "~4.5.0", "@vue/cli-service": "~4.5.0", "babel-eslint": "^10.1.0", "electron": "^13.0.0", "electron-devtools-installer": "^3.1.0", "electron-rebuild": "^3.2.3", "eslint": "^6.7.2", "eslint-plugin-vue": "^6.2.2", "vue-cli-plugin-electron-builder": "~2.1.1", "vue-template-compiler": "^2.6.11" }, Solution: const { IgnorePlugin } = require('webpack') module.exports = { pluginOptions: { plugins: [ new IgnorePlugin({ resourceRegExp: /serialport/ }) ], electronBuilder: { nodeIntegration: true, externals: [ 'serialport' ] } } } app.allowRendererProcessReuse = false Just re-run This is the end of this article about solutions to problems when vue-electron uses serialport. For more related content about problems when vue-electron uses serialport, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Detailed explanation of the usage of grep command in Linux
>>: Is mysql a relational database?
In web page production, displaying and hiding ele...
Now we can use an attribute of input called autoco...
Table of contents 0x0 Introduction 0x1 RBAC Imple...
Experimental environment A minimally installed Ce...
Problem Description 1. Database of the collection...
This article records the graphic tutorial of MySQ...
After installing Jenkins, the initial download of...
Preface Sometimes you come across business tables...
This article shares with you the graphic tutorial...
1. Basic use of firewalld start up: systemctl sta...
1. Environment and related software Virtual Machi...
First, let me introduce how to install PHP on Cen...
Part 1: Basics 1. Unlike pseudo-classes such as :...
I have previously shared the usage of asynchronou...
Operation effect: html <div class="tic-ta...