Skip to content

Bugsnag: Cannot set properties of undefined (setting 'apiKey') #762

@telmaantunes

Description

@telmaantunes

In a website using SystemJS, the bugsnag initialization fails with the following message

Bugsnag TypeError: window.require is not a function

SystemJS does not define window.require therefore I've added require to my project and now the integration initializes but gives me the following error:

[Bugsnag] Invalid API key 'undefined'
Uncaught TypeError: Cannot set properties of undefined (setting 'apiKey')
Screenshot 2023-06-23 at 17 39 39

PS: I've obviously confirmed that the Bugsnag destination on segment has its key there.

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