how to use serialport in quasar electron? #11433
Unanswered
s-light
asked this question in
CLI - Electron mode
Replies: 2 comments 13 replies
-
|
Please provide output of |
Beta Was this translation helpful? Give feedback.
0 replies
-
quasar_serialport_test (fresh_start)$ quasar info
Operating System - Linux(5.4.0-91-generic) - linux/x64
NodeJs - 15.14.0
Global packages
NPM - 7.21.0
yarn - 1.22.5
@quasar/cli - 1.2.2
@quasar/icongenie - 2.3.3
cordova - Not installed
Important local packages
quasar - 2.3.3 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
@quasar/app - 3.2.3 -- Quasar Framework local CLI
@quasar/extras - 1.12.0 -- Quasar Framework fonts, icons and animations
eslint-plugin-quasar - Not installed
vue - 3.2.22 -- The progressive JavaScript framework for buiding modern web UI.
vue-router - 4.0.12
vuex - Not installed
electron - 16.0.1 -- Build cross platform desktop apps with JavaScript, HTML, and CSS
electron-packager - Not installed
electron-builder - Not installed
@babel/core - 7.16.0 -- Babel compiler core.
webpack - 5.64.1 -- Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
webpack-dev-server - 4.4.0 -- Serves a webpack app. Updates the browser on changes.
workbox-webpack-plugin - Not installed
register-service-worker - 1.7.2 -- Script for registering service worker, with hooks
typescript - 4.4.2 -- TypeScript is a language for application scale JavaScript development
@capacitor/core - Not installed
@capacitor/cli - Not installed
@capacitor/android - Not installed
@capacitor/ios - Not installed
Quasar App Extensions
*None installed*
Networking
Host - stefan-Zen
enx00a0c6000000 - 192.168.1.4 |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hello community,
today i tried to revisit my serialport in quasar example...
to just get an fresh start i tried with:
yarn add electron-rebuildyarn add serialportyarn electron-rebuild -fSerial.vuefilequasar dev --mode electronSerial TestTypeError: SerialPort.list is not a functionQuasar Framework, Electron, and Serialport: indexOf Error-i tried to replicate this - but nothing changed..
maybe i just had no luck this day?!
if i try to import or require the serialport in the vue file i get a bunch of import related errrors during the build -
(thsi list goes on and on and on)
seems then i try to import it in a way / context it is not meant...
my experiments can be found in the fresh_start branch
has anyone an up to date step by step how to for this kind of external module?
or any tips on how to trace this down?!
i am currently lost how to go on with this... so any tips or broad hints are very welcome :-)
sunny greetings
stefan
Beta Was this translation helpful? Give feedback.
All reactions