Description
The rclnodejs module fails to initialize properly in Electron 39.x, while it works correctly in Electron 31.7.7. Specifically, calling new node() constructor results in an error in Electron 39, but works fine in the older version.
- Library Version: 1.8.0
- ROS Version: jazzy
- Platform / OS: ubuntu 24
Steps To Reproduce
source /opt/ros/jazzy/setup.bash
main/index.ts
import * as rclnodejs from 'rclnodejs'
app.whenReady().then(() => {
const mainWindow = createWindow()
rclnodejs.init().then(() => {
const node = rclnodejs.createNode('publisher_example_node')
})
npm run dev
Expected Behavior
The new node() constructor should work consistently across supported Electron versions (at least within the same major version range).
Actual Behavior
Node constructor fails in Electron 39.x but works in Electron 31.7.7.