Sentry-javascript: Support for Angular2 and SystemJS

Created on 14 May 2016  路  5Comments  路  Source: getsentry/sentry-javascript

Can you please provide an example for using raven-js with SystemJS (the default of the Angular2 CLI)?

Having an SDK and docs for Angular2 would also be great :)

Thank you!

Most helpful comment

  • TypeScript definitions added in #610 (and out w/ Raven.js 3.1.0)
  • SystemJS / Angular 2 docs pending in #615

All 5 comments

:+1:

@Splaktar there is a typing here if you're using typescript: DefinitelyTyped/DefinitelyTyped:ravenjs/ravenjs.d.ts

For angular2 support this should probably be added to the repo

Beyond that I think all that's really needed is perhaps a plugin like the angular plugin. I think there's probably no need for a separate sdk, unless you're suggesting a rewrite in typescript or ES2015 or something.

+1 for an easy-to-implement angular2 example in the "Configure your application" web gui when you create a new project.

+1

If possible, please adding example of webpack.config.js too.

  • TypeScript definitions added in #610 (and out w/ Raven.js 3.1.0)
  • SystemJS / Angular 2 docs pending in #615

Woohoo! :beers:
Thanks, @benvinegar!

Was this page helpful?
0 / 5 - 0 ratings