Closed sinhaniik closed 11 months ago
I ran into the same error message, also trying to use react-split
within a Next 13 app with the app
directory (i.e., with Next's implementation of React Server Components).
The resolution for me was simply to make sure this component is only used from within Client Components (i.e., components with 'use client';
at the top of the file)
In the future, perhaps it could be fixed within the library itself, by either addressing whatever issue leads to this error when using the module within a server context, or by adding a 'use client';
directive within the library itself for better Next compatibility. But the workaround is fairly straightforward (and a common one for anyone using Next 13 with external dependencies anyhow)
yeah, that works for me
I got this error when i am trying to use the
react-split
when i run
npm run dev
an error poped upServer Error TypeError: Object prototype may only be an Object or null: undefined This error happened while generating the page. Any console logs will be displayed in the terminal window.
i did everything which i can like re-install the package , dubugging but i failed to fix this error
here is my
package.json