kaoto-ui
kaoto-ui copied to clipboard
Deleting the source code thows an exception
Describe the Bug
An unhandled exception is thrown upon deleting the source code
Steps to Reproduce the Bug or Issue
- Starting with a blank canvas.
- Delete all the source code.
- See the exception thrown.
Screenshots or Videos
Screencast from 2023-06-13 16-09-37.webm
Platform
- OS: [Linux]
- Browser: [Firefox]
- Version: [1.0.0]
Investigating this issue let me to figuring, that the error was there for quite a long time, but was visible only in the console. Only after this commit - upgrading the webpack-dev-server
, which introduced this fix - overlay displays unhandled promise rejection started the error appear in the overlay.
That being said, there seems to be an issue with the version of monaco-editor in the package.json
. The issue seems to be occurring since the upgrade to version 0.35.0 - prior to this version there was no such error.
The question now is, whether we want to downgrade the monaco-editor to version 0.34.1, or should I try to find another solution.
I think that it will be better to leave the version downgrade as a last-resort solution since in production mode, there's a console error only.
Just for testing purposes, I downgraded monaco-editor
to 0.34.1
and I don't see the error message in Firefox :thinking:
I know - going through the changelog from monaco-editor 0.35.0
, I can't figure out, what might have introduced this error.