Error while using fit addon with canvas addon #4641
Replies: 3 comments 1 reply
-
Any more info on this? I tried and could not reproduce in Chrome or Firefox. I used these two files: index.html:
index.js:
|
Beta Was this translation helpful? Give feedback.
-
This seems to be caused by me using xterm in react with StrictMode which causes components to double render. This error suggests that there is something I wasn't cleaning up in my code. Is it possible to call |
Beta Was this translation helpful? Give feedback.
-
If you call dispose you cannot use it again, you can call open on different elements though. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Using the fit addon with the canvas addon causes an error when calling
.fit()
.Details
Steps to reproduce
npm install xterm xterm-addon-fit xterm-addon-canvas
Beta Was this translation helpful? Give feedback.
All reactions