Comments (7)
@gasper94 we've moved over to the @xterm
scope so you want the modules @xterm/xterm
and @xterm/addon-fit
from xterm.js.
build locally & vercel deployment
from xterm.js.
Can you describe, what that actually fixes? To me it seems, that you only commented out/widened TS types?
from xterm.js.
I was trying to deploy a project to vercel using xTerm and xterm-addon-fit().
I got this error build error (dev worked fine): 7:10 Error: FitAddon not found in 'xterm-addon-fit' import/named
I had the library "xterm-addon-fit": "^0.8.0" and import { FitAddon } from 'xterm-addon-fit';
I pointed the library to this: import { FitAddon } from 'xterm-addon-fit/src/FitAddon';
but on that file: browser/renderer/shared/Types is nowehere to be found
so, I removed that line and everything worked as spected. I was able to run and build. I'm I doing something wrong?
from xterm.js.
You're pointing it to src/ which includes the typescript code. You are meant to use whatever main
in the package.json points to:
"main": "lib/addon-fit.js",
Otherwise you have to deal with compiling the TS yourself which isn't possible without the rest of the core repo.
from xterm.js.
Totally. I understand that but when I point it to "main" I get this error (7:10 Error: FitAddon not found in 'xterm-addon-fit' import/named): I have xtermjs + xterm-addon-fit on node_modules.
from xterm.js.
Great!!! Thank you!
from xterm.js.
Related Issues (20)
- xterm deletes content instead of wrapping HOT 4
- Terminals not accessible using nano, vim, etc. in Cloud Shell and likely elsewhere HOT 1
- ptyProcess.kill() is error
- Line break bug HOT 1
- Consider making the canvas selection further right to the overview ruler/scroll bar HOT 1
- Overlapping glyphs m+@ HOT 2
- Decorations outside the scrollable area are not being updated HOT 1
- Inconsistent term.onData Event Behavior Between iOS and Android in React Native WebView Terminal HOT 1
- Incorrect pasting the Greek letter ϕ (U+03D5) and φ (U+03C6) from xterm.js to another text-area HOT 2
- SyntaxError: Named export 'context' not found. HOT 11
- Run a command which runs for a long time will awlays make the browser crash HOT 11
- Sb
- Sa
- The website uses HTTP instead of HTTPS by default HOT 6
- When run into alternate, BaseY never get updated and can't scroll the view HOT 2
- Follow GTK/Qt color scheme for frame and background and text HOT 3
- Bring back ballistic scroll for mouse events HOT 1
- Unable to preventDefault inside passive event listener invocation.
- Poor performance on safari
- Every addon has incorrect module mappings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xterm.js.