Skip to content

Eventemitter2 undefined with requirejs #342

@sebasuh

Description

@sebasuh

Hi,

I get this error in Firefox when using roslibjs with requirejs:

TypeError: EventEmitter2 is undefined
TypeError: roslib.Ros is not a constructor

How to recreate:

$ git clone git@github.com:srottschaefer/bug_roslib_requirejs.git
$ npm install
$ npx grunt
$ npm start
  1. (if browser did not open automatically): open browser, go to localhost:8080 (or whatever it says in the console
  2. Open developer tools console and see the error for yourself

I don't have a pull request because I am not that familiar with Javascript but maybe someone as a quick fix or workaround?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions