Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This example doesn't seem to work anymore #22

Open
aquiot-inc opened this issue Sep 10, 2021 · 2 comments
Open

This example doesn't seem to work anymore #22

aquiot-inc opened this issue Sep 10, 2021 · 2 comments

Comments

@aquiot-inc
Copy link

When running quasar dev --mode electron, the following error shows up in the console:

Patch with SerialPort failed:
 Error: Loading non-context-aware native module in renderer: '\\?\C:\proj\quasar_serialport_test-master\node_modules\@serialport\bindings\build\Release\bindings.node', but app.allowRendererProcessReuse is true. See https://github.com/electron/electron/issues/18397.
    at process.func [as dlopen] (electron/js2c/asar.js:140)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1034)
    at Object.func [as .node] (electron/js2c/asar.js:140)
    at Module.load (internal/modules/cjs/loader.js:815)
    at Module._load (internal/modules/cjs/loader.js:727)
    at Function.Module._load (electron/js2c/asar.js:769)
    at Module.require (internal/modules/cjs/loader.js:852)
    at require (internal/modules/cjs/helpers.js:74)
    at bindings (C:\proj\quasar_serialport_test-master\node_modules\bindings\bindings.js:112)
    at Object.<anonymous> (C:\proj\quasar_serialport_test-master\node_modules\@serialport\bindings\lib\win32.js:1)

See: twolfson/karma-electron#48

I have been able to get serialport to work with Quasar/Electron, but only in dev mode. quasar build -m electron --debug has the error:

Unable to load preload script: C:\proj\Quasar-Config-App\dist\electron\Aquiot-Serial-Util-win32-x64\resources\app.asar\electron-preload.js
@s-light
Copy link
Owner

s-light commented Nov 20, 2021

hm :-(

maybe its the easiest to start with a fresh project and copy over...

if i remember correctly i tried to update some of the dependencies -
seems i was not so successful with this..

@s-light
Copy link
Owner

s-light commented Nov 20, 2021

i just tried to revisit this ...
but that did not go anywere....
see fresh_start branch
i also posted this to how to use serialport in quasar electron? #11433

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants