Unexpected issue regarding addon-fit
when used in React
#5017
Unanswered
brandonmcconnell
asked this question in
Q&A
Replies: 2 comments 4 replies
-
Per this answer by @x1unix on this thread, I also tried doing this in a fully client setting (no Next.js) and used the source from https://github.com/jaxtonw/xterm-for-react18 as a baseline, and it still does not work. Reproduction: https://stackblitz.com/edit/vitejs-vite-mpuuoi?file=src%2Fcomponents%2FXTerm.tsx |
Beta Was this translation helpful? Give feedback.
0 replies
-
We have the same issue over for angular.dev that uses pre-rendering. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a minimal reproduction here, where you can see some issues in the console and client that appear, apparently related to the usage of
addon-fit
.https://stackblitz.com/edit/stackblitz-starters-6ssv2a?file=app%2Fcomponents%2FXTerm.tsx
Do you have any idea what I could be doing wrong in my wrapper component? It's a very thin wrapper, so I feel the issue is probably related to my usage of XTerm and not React-specific.
The component source and errors are below:
Component source
app/page.tsx
app/components/XTerm.tsx
Errors
In the terminal:
In the client:
Beta Was this translation helpful? Give feedback.
All reactions