---
title: "CoffeeScript"
url: https://docs.sentry.io/platforms/javascript/guides/node/legacy-sdk/coffeescript/
---

# CoffeeScript | Sentry for Node.js

##### Deprecation Warning

A new Node SDK has superseded this deprecated version. Sentry preserves this documentation for customers using the old client. We recommend using the [updated Node SDK](https://docs.sentry.io/platforms/javascript/guides/node.md) for your projects.

In order to use raven-node with coffee-script or another library which overwrites Error.prepareStackTrace you might run into the exception “Traceback does not support Error.prepareStackTrace being defined already.”

In order to not have raven-node (and the underlying raw stack trace library) require Traceback you can pass your own stackFunction in the options. For example:

```coffeescript
client = new raven.Client('___PUBLIC_DSN___', {
    stackFunction: {{ Your stack function }}
});
```

So for example:

```coffeescript
client = new raven.Client('___PUBLIC_DSN___', {
    stackFunction: Error.prepareStackTrace
});
```
