-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
TypeError: name.toLowerCase is not a function in mode option #108
Comments
@ThomasDuin Upgrade |
Thank you for responding so quickly and trying to get a fix out there, but I still seem to get the same error. |
@ThomasDuin Examples are welcome. |
<CodeMirror
value={code}
options={{
theme: "monokai",
keyMap: "sublime",
- mode: { name: "javascript", json: true }
+ mode: 'javascript'
}}
/> |
The json property doesn't do anything? |
I'm trying to use the |
|
@raquelhortab Downgrade to version 3.0. |
oh... okay! Is there any way I can get the bundled version for v3? Just like you fix it up yesterday for v4? Or get the commands needed to generate it myself. I am sorry to be bothering, if that is an inconvenience I'll try to settle with v4 or find an alternative library. Thanks for the support! |
I think I got it, I'll leave it here in case someone needs it Edit: sorry that's not really the bundled version Edit 2: I tried adding the following npm scripts but it just generated a bunch of oversized js files named xxxxx.chunk.js
|
The documentation says you can also use an object as a configuration for prop mode. When I use the example ( {name: "javascript", json: true}) it says name.toLowerCase is not a function. Is this a bug regarding this package?
The text was updated successfully, but these errors were encountered: