Skip to content

Is there any guide for integrating react-codemirror2 into NextJs? #287

Open

Description

@igaimerca

image

Activity

  1. mrraghur commented on Aug 25, 2022

    @mrraghur

    Hi. We are getting this error when we try to integrate code mirror with nextjs. It works well with reactJs but not nextJs. Can you or someone else guide me and @igaimerca. Thanks in advance

  2. zignis commented on Dec 10, 2022

    @zignis

    Import it dynamically with the ssr option set to false as navigator is not available on the server side.

    import dynamic from 'next/dynamic';
    
    const CM = dynamic(() => import('path-to-package'), { ssr: false });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions