Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next.js Application error: a client-side exception has occurred (see the browser console for more information) #183

Open
lucasmbispo opened this issue Jun 19, 2023 · 1 comment

Comments

@lucasmbispo
Copy link

Describe the bug & Expected behavior
While importing the arrows inside a Flowershow application, that uses NextJS + contentlayer, it works normally within dev environment (npm run dev), but when we build and start the application (npm run build && npm run start) we get this error: Next.js Application error: a client-side exception has occurred (see the browser console for more information)

To Reproduce
You only need to import the library inside a normal jsx file inside of the application, and it fails to npm build && npm run start, bringing this error.

import Xarrow from "react-xarrows";

or

import dynamic from 'next/dynamic';

const Xarrow = dynamic(() => import('react-xarrows'), {
    ssr: false
});

both giving me the same error.

@AbhigyanBafna
Copy link

Did you try mentioning "use client" at the top of your jsx?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants