Skip to content

Next.js: 'unstable_act' is not exported from 'react' #83

@maximilianberndt

Description

@maximilianberndt

When trying to build in next.js I am getting this error:

./node_modules/react-ogl/dist/reconciler.mjs
Attempted import error: 'unstable_act' is not exported from 'react' (imported as 'React').

Seems like the issue is coming from this in reconciler.ts:
export const act: Act = 'unstable_act' in React ? (React as any).unstable_act : (React as any).act

I don't have experience with testing in react, so I would really appreciate your help but let me know if I can help you debug this in any way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions