Skip to content

Electron 39 Compatibility Issue with rclnodejs - new node() Constructor Fails #1373

@alexlzg

Description

@alexlzg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions