Server-Side Source Maps in Node.js

Node.js projects in Honeybadger can now officially take advantage of source maps, just like Client-Side JavaScript projects can.

Hello, friendly JavaScripters. Do you like knowing what the hell is happening in your production code? If so, I'm sure that's why you use source maps to help you debug your JavaScript exceptions in the browser. Source maps became popular with the proliferation of transpilers like Babel and TypeScript, which allow developers like us to take advantage of new language features while still supporting old, crusty browsers (my favorite).

Right now, you can upload your source maps to Honeybadger, and we'll automatically translate your stack traces when an error occurs—making it much easier to pinpoint the cause of the bug.

We built the original system with browsers in mind, but many of you have been asking if you can also upload source maps for your server-side (Node.js) projects. For instance, you may be writing your API in TypeScript—wouldn't it be great if you could link your stack traces directly to the .ts files in your editor? Of course, now you can. 😄

Node.js projects in Honeybadger can now officially take advantage of source maps, just like Client-Side JavaScript projects can (you can find the language setting under Project Settings -> Edit).

To get started, check out our Using Source Maps guide. How you generate and upload source maps will depend on your tooling and build configuration—two of the most common configurations we see use Webpack and/or TypeScript.

Node's Experimental --source-map-support

Honeybadger also supports Node's experimental --source-map-support flag as of version 14+. If you run node with --source-map-support (and are generating source maps in your build system), your stack traces should be automatically translated before sending them to Honeybadger—you don't even need to upload your source maps in that case!


That's all—head over to the JavaScript exception tracking docs to get started!

What to do next:
  1. Try Honeybadger for FREE
    Honeybadger helps you find and fix errors before your users can even report them. Get set up in minutes and check monitoring off your to-do list.
    Start free trial
    Easy 5-minute setup — No credit card required
  2. Get the Honeybadger newsletter
    Each month we share news, best practices, and stories from the DevOps & monitoring community—exclusively for developers like you.
    author photo

    Joshua Wood

    Josh is Honeybadger's resident bug hunter and technical debt collector. Once enthusiastically referred to as a "human exception tracker", he spends his days crafting the middleware, plugins, and gems which keep the 'badger fat and happy through a steady diet of fresh data.

    More articles by Joshua Wood
    Stop wasting time manually checking logs for errors!

    Try the only application health monitoring tool that allows you to track application errors, uptime, and cron jobs in one simple platform.

    • Know when critical errors occur, and which customers are affected.
    • Respond instantly when your systems go down.
    • Improve the health of your systems over time.
    • Fix problems before your customers can report them!

    As developers ourselves, we hated wasting time tracking down errors—so we built the system we always wanted.

    Honeybadger tracks everything you need and nothing you don't, creating one simple solution to keep your application running and error free so you can do what you do best—release new code. Try it free and see for yourself.

    Start free trial
    Simple 5-minute setup — No credit card required

    Learn more

    "We've looked at a lot of error management systems. Honeybadger is head and shoulders above the rest and somehow gets better with every new release."
    — Michael Smith, Cofounder & CTO of YvesBlue

    Honeybadger is trusted by top companies like: