segmentio / segmentio/analytics.js-integrations
Bugsnag: Cannot set properties of undefined (setting 'apiKey')
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 125
- Forks
- 136
- Avg merge
- 2h 45m
- Merged PRs (30d)
- 1
Description
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')
PS: I've obviously confirmed that the Bugsnag destination on segment has its key there.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the Bugsnag destination integration and reproducing initialization in a website loaded with SystemJS, using the reported window.require and undefined API-key errors as checkpoints. Done means the integration initializes without these errors and uses the API key configured for the Segment Bugsnag destination.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- analytics, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100