-
Notifications
You must be signed in to change notification settings - Fork 195
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
Getting "cm is not a function" in NextJs #298
Comments
I have the same problem.
|
I encountered this problem on react18. When react17 was executed, no error was reported, is also nextjs. |
i saw this on error page var React = require('react');
var SERVER_RENDERED = typeof navigator === 'undefined' || global['PREVENT_CODEMIRROR_RENDER'] === true;
var cm;
if (!SERVER_RENDERED) {
cm = require('codemirror');
} |
solution - get codemirror@5 I had same problem: Error goes away when i uninstall install codemirror and install codemirror@5 -- which gets me to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I am getting the below error in NextJs. I have tried downgrading the version but it is not getting resolved. Please help!
The versions I have tried -
v7.2.1 (latest)
v7.1.0
v7.0.0
v6.0.1
The text was updated successfully, but these errors were encountered: