Skip to content

roslibjs is not working with vite 6.0.0 or above #860

Open
@learncodingforweb

Description

@learncodingforweb

Description
If i run app in development mode for 6.0.0 or above, then working fine. But if i build app for 6.0.0 or above, then getting error TypeError: undefined is not an object (evaluating 'Hi.ROSLIB'). I tried even on tauri app same behavior observed for vite 6.0.0 or above

  • Library Version: "roslib": "^1.4.1"
  • ROS Version: humble 2
  • Platform / OS:
lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.5 LTS
Release:	22.04
Codename:	jammy

Steps To Reproduce
check repo, to debug issue run wails build --debug && ./build/bin/ros2libjs_test

Expected Behavior
It should for vite 6.0.0

Actual Behavior
Getting error TypeError: undefined is not an object (evaluating 'Hi.ROSLIB')

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