rollbar / rollbar.js

Error tracking and logging from Javascript to Rollbar

Home Page:https://docs.rollbar.com/docs/javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there any example for Angular Source Maps Implementation?

hotequil opened this issue · comments

Is there any example for Angular Source Maps Implementation?

This Angular example builds source maps:
https://github.com/rollbar/rollbar.js/tree/master/examples/angular2

And this PR description includes two Angular examples for uploading with rollbar-cli.
rollbar/rollbar-cli#1

If you're using curl, the same basic idea applies. The rollbar-cli just makes it easier to upload all at once. The doc for using curl is here: https://docs.rollbar.com/docs/source-maps

Thank you!!! But i tried this command rollbar-cli upload-sourcemaps dist/MY_FOLDER --access-token MY_ACCESS_TOKEN --url-prefix 'http://localhost:4200/' --code-version angular11v1 -s, then results in some files this error: [Error ] insufficient privileges: post_server_item scope is required but the access token only has post_client_item.

Rollbar's source maps API requires a different token than the browser token. In you Rollbar dashboard under /settings/access_tokens/ look for a post_server_item token.

Ohhh, okay!!! thank you! works for me

👍 Great to hear!