carbon
carbon copied to clipboard
Add a try/catch block to components/Carbon.js to handle the error if the codemirror custom-language package doesn't exist
- Add a try/catch block to components/Carbon.js to handle the error if the codemirro language package doesn't exist or is corrupted (this check avoids an initial crash in development mode 'yarn run dev')
- [ ] Integration tests (if applicable)
Closes #1438
@skevprog is attempting to deploy a commit to the Carbon Team on Vercel.
A member of the Team first needs to authorize it.
PR worked fine for me and resolved my issues when upgrading from a previous release.
@mfix22 - This looks like a decent fix for a common issue faced by most people. Could you please take a look and approve/merge if all looks good?