Closed geekroscom closed 1 year ago
?
I think you need to build your native node module using the same node version/ABI that vscode is on. This might help https://stackoverflow.com/questions/71527006/module-compiled-against-a-different-node-module-version-when-developing-an-exten
Hopes to have built-in support for usb detection and serialport! This is conducive to the creation and expansion of hardware developers.
For native module issue in question, you would have to rebuild for the Node ABI version of VSCode engine or your native module can use NAPI to avoid this in general. As for built-in support, have you looked into WebUSB, WebSerial apis which are now supported for web UI exetensions https://code.visualstudio.com/updates/v1_69#_webusb-webserial-and-webhid-access-on-web
Hello, we are currently working on an extension: https://marketplace.visualstudio.com/items?itemName=GEEKROS.geekstudio
I have encountered some problems at present, about the use of node-usb-native.
The development environment information is as follows:
Node Version: v14.19.3 VSCode Version: 1.72.2
Extension Package.json:
When the extension is compiled and debugged, an error is reported:
In the current Node development environment, the electron program has been developed a long time ago, and usb-detection can be used normally.
I have read and tried a lot of information on github, but cannot solve this problem. Can you give some guidance, methods, and procedures?