-
Notifications
You must be signed in to change notification settings - Fork 215
Open
Description
I am trying to install rollbar module to handle server side error on my new nextjs 13.4.2 project.
When I try to run next build, it shows the following error.
- info Creating an optimized production build
- info Compiled successfully
- info Linting and checking validity of types
- info Collecting page data .TypeError: Cannot set properties of undefined (setting 'is')
utils/rollbar.ts
import Rollbar from 'rollbar';
const rollbar = new Rollbar({
accessToken: process.env.ROLLBAR_SERVER_TOKEN as string,
});
export default rollbar;
page.tsx
import rollbar from '@/utils/rollbar';
export default function Home() {
rollbar.info('Home page built done');
return (
<main className="pt-5 px-[25px]">
........
Besuf and daryllxd
Metadata
Metadata
Assignees
Labels
No labels