'Error: values property should be an object effector-next

When I try to wrap the nextjs application in effector-next I get this error when the page loads



Solution 1:[1]

I solved the problem. It was necessary to add the _document.tsx file to the pages folder with this content import Document from "next/document";

import { withFork } from "effector-next";

const enhance = withFork({ debug: false });

export default enhance(Document);

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tyler2P