Currently utilizing honeybadger for error tracking
Within my js file, I am using the following code.
var Honeybadger = require('honeybadger-js/honeybadger');
Honeybadger.configure({
apiKey: *********,
environment: process.env.RAILS_ENV || 'development',
revision: process.env.GIT_COMMIT || 'master',
debug: true
});
I now need to implement this in a ts script
However, upon copying the code, errors arise
file: 'file:///Users/admin/Documents/GitHub/falco-web/app/javascript/packs/hello_typescript.ts' severity: 'Error' message: 'Cannot find name 'require'.' at: '3,19' source: 'ts' code: '2304'
file: 'file:///Users/admin/Documents/GitHub/falco-web/app/javascript/packs/hello_typescript.ts' severity: 'Error' message: 'Cannot find name 'process'.' at: '7,16' source: 'ts' code: '2304'
Any suggestions on how to address these issues?