electron: Dev tools JSX files: Uncaught (in promise) Error: Could not instantiate: CmModes.DefaultCodeMirrorMimeMode
- Output of
node_modules/.bin/electron --version: 2.0.8 - Operating System (Platform and Version): MacOS 10.13.6
- Output of
node_modules/.bin/electron --versionon last known working Electron version (if applicable):
Expected Behavior JSX files should have syntax highlighting like with JS files.
Actual behavior JSX files in the sources tab show as plain white text, the error is shown in the terminal: Uncaught (in promise) Error: Could not instantiate: CmModes.DefaultCodeMirrorMimeMode
To Reproduce Simply open a JSX file in your sources.
Additional Information On a normal Chrome browser, JSX files have syntax highlighting working.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 22
- Comments: 16 (1 by maintainers)
Here’s a repo, at least for me, maybe I’m doing something stupid
You should see a devtools
Clicking on view.jsx
Generates the following errors in the terminal
Still getting this in Windows with Electron v7.0.1, more information may also come in the possibly duplicate issue:
https://github.com/electron/electron/issues/13008
I’m seeing the same errors for both typescript
*.tsand typescript-react*.tsxfiles. Both show as plain/white text in the dev console, throwing the same “Could not instantiate: CmModes.DefaultCodeMirrorMimeMode” errors.Operating System: Linux, Debian testing (Buster).
Like the original poster, these files have proper syntax highlighting on a normal Chrome browser.
The Electron version reported on this issue is no longer supported. See our supported versions documentation.
If this is still reproducible on a supported version, please open a new issue with any other new information that a maintainer should know.
Thank you for taking the time to report this issue and helping to make Electron better! Your help is appreciated.
the same error goes with mac/electron@6.1.5
This issue is also in newly-released 6.0.0
I have the same problem using TypeScript both
tsandtsxfiles.Hope it’s solved soon, I can try to solve it with some direction.