Skip to content

compatibility issue with nextjs 13.4 #1106

@Musashi-Sakamoto

Description

@Musashi-Sakamoto

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]">
........

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions