Skip to content

Make CodeMirror load dynamically to avoid error - ReferenceError: document is not defined - #1579

Open
okaram wants to merge 1 commit into
carbon-app:mainfrom
okaram:main
Open

Make CodeMirror load dynamically to avoid error - ReferenceError: document is not defined#1579
okaram wants to merge 1 commit into
carbon-app:mainfrom
okaram:main

Conversation

@okaram

@okaram okaram commented Jun 28, 2025

Copy link
Copy Markdown

When downloading repo and running

yarn install
yarn dev

(or yarn build)

I get the following error

Server Error
ReferenceError: document is not defined

This fixes it by making the CodeMirror import dynamic

@vercel

vercel Bot commented Jun 28, 2025

Copy link
Copy Markdown

@okaram is attempting to deploy a commit to the Carbon Team on Vercel.

A member of the Team first needs to authorize it.

AlexAdasCca added a commit to AlexAdasCca/carbon that referenced this pull request Jul 7, 2025
AlexAdasCca added a commit to AlexAdasCca/carbon that referenced this pull request Jul 7, 2025
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

Successfully merging this pull request may close these issues.

1 participant