xtermjs / xterm.js

A terminal for the web
https://xtermjs.org/
MIT License
17.65k stars 1.63k forks source link

Please create build script and or instructions for the Windows xterm demo #3246

Closed chrisjd20 closed 3 years ago

chrisjd20 commented 3 years ago

So I see here you all have a demo of xterm working on windows at:

https://github.com/xtermjs/xterm.js/tree/master/demo

Could you all provide the installation steps in a readme for this?

This is what I have tried thus far to get it installed (PowerShell):

choco install nodejs -y --version 15.11.0
choco install python3 --pre -y --version 3.9.2
choco install yarn -y --version 1.22.5
choco install visualstudio2019buildtools visualstudio2019-workload-vctools -y
$env:Path += ";C:\Program Files\nodejs"
$env:Path += ";C:\Python39"
$env:Path += ";C:\Program Files (x86)\Yarn\bin"
[Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::Machine)

Created a package.json file in ./xterm.js-4.10.0/demo:

{
  "name": "demo",
  "version": "1.0.0",
  "description": "",
  "main": "start.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "node start.js"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "express": "^4.17.1",
    "express-ws": "^4.0.0",
    "node-pty": "^0.10.0",
    "proper-lockfile": "^4.1.2",
    "ts-loader": "^8.0.17",
    "webpack": "^5.24.3"
  }
}

Then in PowerShell I run:

cd xterm.js-4.10.0
npm install --force    # this completes fine
cd .\demo\
npm install
npm start

Could someone help me? This resulted in the following errors:

> demo@1.0.0 start
> node start.js

App listening to http://127.0.0.1:3000
(node:4536) [DEP_WEBPACK_WATCH_WITHOUT_CALLBACK] DeprecationWarning: A 'callback' argument need to be provided to the 'webpack(options, callback)' function when the 'watch' option is set. There is no way to handle the 'watch' option without a callback.
(Use `node --trace-deprecation ...` to show where the warning was created)
asset client-bundle.js 1.11 MiB [emitted] (name: main)
modules by path ../addons/ 132 KiB
  modules by path ../addons/xterm-addon-webgl/out/ 90.8 KiB 13 modules
  modules by path ../addons/xterm-addon-web-links/out/*.js 6.01 KiB 2 modules
  modules by path ../addons/xterm-addon-unicode11/out/*.js 11 KiB
    ../addons/xterm-addon-unicode11/out/Unicode11Addon.js 348 bytes [built] [code generated]
    ../addons/xterm-addon-unicode11/out/UnicodeV11.js 10.6 KiB [built] [code generated]
modules by path ../out/ 146 KiB
  modules by path ../out/browser/*.js 54.4 KiB 3 modules
  modules by path ../out/browser/public/*.js 17.5 KiB
    ../out/browser/public/Terminal.js 16 KiB [built] [code generated]
    ../out/browser/public/AddonManager.js 1.48 KiB [built] [code generated]
  ../out/common/InputHandler.js 74.5 KiB [built] [code generated]
./client.ts 14.3 KiB [built] [code generated]

ERROR in ../addons/xterm-addon-unicode11/out/UnicodeV11.js 4:26-59
Module not found: Error: Can't resolve 'common/TypedArrayUtils' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\addons\xterm-addon-unicode11\out'
 @ ../addons/xterm-addon-unicode11/out/Unicode11Addon.js 4:21-44
 @ ./client.ts 18:25-86

ERROR in ../addons/xterm-addon-webgl/out/GlyphRenderer.js 6:24-57
Module not found: Error: Can't resolve 'common/TypedArrayUtils' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\addons\xterm-addon-webgl\out'
 @ ../addons/xterm-addon-webgl/out/WebglRenderer.js 17:22-48
 @ ../addons/xterm-addon-webgl/out/WebglAddon.js 4:22-48
 @ ./client.ts 17:21-74

ERROR in ../addons/xterm-addon-webgl/out/GlyphRenderer.js 8:18-52
Module not found: Error: Can't resolve 'common/buffer/Constants' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\addons\xterm-addon-webgl\out'
 @ ../addons/xterm-addon-webgl/out/WebglRenderer.js 17:22-48
 @ ../addons/xterm-addon-webgl/out/WebglAddon.js 4:22-48
 @ ./client.ts 17:21-74

ERROR in ../addons/xterm-addon-webgl/out/GlyphRenderer.js 9:22-60
Module not found: Error: Can't resolve 'common/buffer/AttributeData' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\addons\xterm-addon-webgl\out'
 @ ../addons/xterm-addon-webgl/out/WebglRenderer.js 17:22-48
 @ ../addons/xterm-addon-webgl/out/WebglAddon.js 4:22-48
 @ ./client.ts 17:21-74

ERROR in ../addons/xterm-addon-webgl/out/RectangleRenderer.js 5:24-57
Module not found: Error: Can't resolve 'common/TypedArrayUtils' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\addons\xterm-addon-webgl\out'
 @ ../addons/xterm-addon-webgl/out/WebglRenderer.js 21:26-56
 @ ../addons/xterm-addon-webgl/out/WebglAddon.js 4:22-48
 @ ./client.ts 17:21-74

ERROR in ../addons/xterm-addon-webgl/out/RenderModel.js 4:24-57
Module not found: Error: Can't resolve 'common/TypedArrayUtils' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\addons\xterm-addon-webgl\out'
 @ ../addons/xterm-addon-webgl/out/WebglRenderer.js 22:20-44
 @ ../addons/xterm-addon-webgl/out/WebglAddon.js 4:22-48
 @ ./client.ts 17:21-74

ERROR in ../addons/xterm-addon-webgl/out/WebglRenderer.js 23:18-45
Module not found: Error: Can't resolve 'common/Lifecycle' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\addons\xterm-addon-webgl\out'
 @ ../addons/xterm-addon-webgl/out/WebglAddon.js 4:22-48
 @ ./client.ts 17:21-74

ERROR in ../addons/xterm-addon-webgl/out/WebglRenderer.js 24:18-52
Module not found: Error: Can't resolve 'common/buffer/Constants' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\addons\xterm-addon-webgl\out'
 @ ../addons/xterm-addon-webgl/out/WebglAddon.js 4:22-48
 @ ./client.ts 17:21-74

ERROR in ../addons/xterm-addon-webgl/out/WebglRenderer.js 25:21-51
Module not found: Error: Can't resolve 'common/EventEmitter' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\addons\xterm-addon-webgl\out'
 @ ../addons/xterm-addon-webgl/out/WebglAddon.js 4:22-48
 @ ./client.ts 17:21-74

ERROR in ../addons/xterm-addon-webgl/out/WebglRenderer.js 26:17-50
Module not found: Error: Can't resolve 'common/buffer/CellData' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\addons\xterm-addon-webgl\out'
 @ ../addons/xterm-addon-webgl/out/WebglAddon.js 4:22-48
 @ ./client.ts 17:21-74

ERROR in ../addons/xterm-addon-webgl/out/atlas/WebglCharAtlas.js 4:18-61
Module not found: Error: Can't resolve 'browser/renderer/atlas/Constants' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\addons\xterm-addon-webgl\out\atlas'
 @ ../addons/xterm-addon-webgl/out/atlas/CharAtlasCache.js 5:23-50
 @ ../addons/xterm-addon-webgl/out/WebglRenderer.js 20:23-56
 @ ../addons/xterm-addon-webgl/out/WebglAddon.js 4:22-48
 @ ./client.ts 17:21-74

ERROR in ../addons/xterm-addon-webgl/out/atlas/WebglCharAtlas.js 5:18-52
Module not found: Error: Can't resolve 'common/buffer/Constants' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\addons\xterm-addon-webgl\out\atlas'
 @ ../addons/xterm-addon-webgl/out/atlas/CharAtlasCache.js 5:23-50
 @ ../addons/xterm-addon-webgl/out/WebglRenderer.js 20:23-56
 @ ../addons/xterm-addon-webgl/out/WebglAddon.js 4:22-48
 @ ./client.ts 17:21-74

ERROR in ../addons/xterm-addon-webgl/out/atlas/WebglCharAtlas.js 7:22-60
Module not found: Error: Can't resolve 'common/buffer/AttributeData' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\addons\xterm-addon-webgl\out\atlas'
 @ ../addons/xterm-addon-webgl/out/atlas/CharAtlasCache.js 5:23-50
 @ ../addons/xterm-addon-webgl/out/WebglRenderer.js 20:23-56
 @ ../addons/xterm-addon-webgl/out/WebglAddon.js 4:22-48
 @ ./client.ts 17:21-74

ERROR in ../addons/xterm-addon-webgl/out/atlas/WebglCharAtlas.js 8:14-38
Module not found: Error: Can't resolve 'browser/Color' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\addons\xterm-addon-webgl\out\atlas'
 @ ../addons/xterm-addon-webgl/out/atlas/CharAtlasCache.js 5:23-50
 @ ../addons/xterm-addon-webgl/out/WebglRenderer.js 20:23-56
 @ ../addons/xterm-addon-webgl/out/WebglAddon.js 4:22-48
 @ ./client.ts 17:21-74

ERROR in ../addons/xterm-addon-webgl/out/renderLayer/CursorRenderLayer.js 18:17-50
Module not found: Error: Can't resolve 'common/buffer/CellData' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\addons\xterm-addon-webgl\out\renderLayer'
 @ ../addons/xterm-addon-webgl/out/WebglRenderer.js 19:26-68
 @ ../addons/xterm-addon-webgl/out/WebglAddon.js 4:22-48
 @ ./client.ts 17:21-74

ERROR in ../addons/xterm-addon-webgl/out/renderLayer/LinkRenderLayer.js 18:18-61
Module not found: Error: Can't resolve 'browser/renderer/atlas/Constants' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\addons\xterm-addon-webgl\out\renderLayer'
 @ ../addons/xterm-addon-webgl/out/WebglRenderer.js 18:24-64
 @ ../addons/xterm-addon-webgl/out/WebglAddon.js 4:22-48
 @ ./client.ts 17:21-74

ERROR in ../out/browser/AccessibilityManager.js 17:14-51
Module not found: Error: Can't resolve 'browser/LocalizableStrings' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/Terminal.js 30:29-62
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/AccessibilityManager.js 18:17-43
Module not found: Error: Can't resolve 'common/Platform' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/Terminal.js 30:29-62
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/AccessibilityManager.js 19:24-58
Module not found: Error: Can't resolve 'browser/RenderDebouncer' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/Terminal.js 30:29-62
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/AccessibilityManager.js 20:18-46
Module not found: Error: Can't resolve 'browser/Lifecycle' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/Terminal.js 30:29-62
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/AccessibilityManager.js 21:18-45
Module not found: Error: Can't resolve 'common/Lifecycle' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/Terminal.js 30:29-62
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/AccessibilityManager.js 22:25-60
Module not found: Error: Can't resolve 'browser/ScreenDprMonitor' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/Terminal.js 30:29-62
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/AccessibilityManager.js 23:12-34
Module not found: Error: Can't resolve 'browser/Dom' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/Terminal.js 30:29-62
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 17:26-68
Module not found: Error: Can't resolve 'browser/input/CompositionHelper' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 18:17-44
Module not found: Error: Can't resolve 'browser/Viewport' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 19:18-46
Module not found: Error: Can't resolve 'browser/Clipboard' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 20:24-62
Module not found: Error: Can't resolve 'common/data/EscapeSequences' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 22:17-53
Module not found: Error: Can't resolve 'browser/renderer/Renderer' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 23:18-46
Module not found: Error: Can't resolve 'browser/Linkifier' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 24:25-69
Module not found: Error: Can't resolve 'browser/services/SelectionService' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 25:14-40
Module not found: Error: Can't resolve 'common/Platform' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 26:18-46
Module not found: Error: Can't resolve 'browser/Lifecycle' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 27:14-51
Module not found: Error: Can't resolve 'browser/LocalizableStrings' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 28:21-61
Module not found: Error: Can't resolve 'browser/services/SoundService' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 29:25-60
Module not found: Error: Can't resolve 'browser/MouseZoneManager' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 31:20-63
Module not found: Error: Can't resolve 'browser/renderer/dom/DomRenderer' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 32:17-49
Module not found: Error: Can't resolve 'common/input/Keyboard' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 33:21-51
Module not found: Error: Can't resolve 'common/EventEmitter' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 34:19-54
Module not found: Error: Can't resolve 'common/buffer/BufferLine' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 35:21-52
Module not found: Error: Can't resolve 'browser/ColorManager' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 36:22-63
Module not found: Error: Can't resolve 'browser/services/RenderService' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 37:17-53
Module not found: Error: Can't resolve 'browser/services/Services' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 38:24-67
Module not found: Error: Can't resolve 'browser/services/CharSizeService' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 39:21-61
Module not found: Error: Can't resolve 'browser/services/MouseService' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 40:19-48
Module not found: Error: Can't resolve 'browser/Linkifier2' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 41:27-73
Module not found: Error: Can't resolve 'browser/services/CoreBrowserService' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 42:21-51
Module not found: Error: Can't resolve 'common/CoreTerminal' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/Terminal.js 43:14-38
Module not found: Error: Can't resolve 'browser/Color' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser'
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/browser/public/Terminal.js 4:17-50
Module not found: Error: Can't resolve 'common/buffer/CellData' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser\public'
 @ ./client.ts 11:19-60

ERROR in ../out/browser/public/Terminal.js 7:21-51
Module not found: Error: Can't resolve 'common/EventEmitter' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\browser\public'
 @ ./client.ts 11:19-60

ERROR in ../out/common/InputHandler.js 17:24-62
Module not found: Error: Can't resolve 'common/data/EscapeSequences' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\common'
 @ ../out/browser/Terminal.js 21:21-54
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/common/InputHandler.js 18:17-48
Module not found: Error: Can't resolve 'common/data/Charsets' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\common'
 @ ../out/browser/Terminal.js 21:21-54
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/common/InputHandler.js 19:29-74
Module not found: Error: Can't resolve 'common/parser/EscapeSequenceParser' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\common'
 @ ../out/browser/Terminal.js 21:21-54
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/common/InputHandler.js 20:18-45
Module not found: Error: Can't resolve 'common/Lifecycle' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\common'
 @ ../out/browser/Terminal.js 21:21-54
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/common/InputHandler.js 21:24-57
Module not found: Error: Can't resolve 'common/TypedArrayUtils' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\common'
 @ ../out/browser/Terminal.js 21:21-54
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/common/InputHandler.js 22:20-55
Module not found: Error: Can't resolve 'common/input/TextDecoder' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\common'
 @ ../out/browser/Terminal.js 21:21-54
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/common/InputHandler.js 23:19-54
Module not found: Error: Can't resolve 'common/buffer/BufferLine' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\common'
 @ ../out/browser/Terminal.js 21:21-54
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/common/InputHandler.js 24:21-51
Module not found: Error: Can't resolve 'common/EventEmitter' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\common'
 @ ../out/browser/Terminal.js 21:21-54
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/common/InputHandler.js 25:18-52
Module not found: Error: Can't resolve 'common/buffer/Constants' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\common'
 @ ../out/browser/Terminal.js 21:21-54
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/common/InputHandler.js 26:17-50
Module not found: Error: Can't resolve 'common/buffer/CellData' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\common'
 @ ../out/browser/Terminal.js 21:21-54
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/common/InputHandler.js 27:22-60
Module not found: Error: Can't resolve 'common/buffer/AttributeData' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\common'
 @ ../out/browser/Terminal.js 21:21-54
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/common/InputHandler.js 28:18-52
Module not found: Error: Can't resolve 'common/parser/OscParser' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\common'
 @ ../out/browser/Terminal.js 21:21-54
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

ERROR in ../out/common/InputHandler.js 29:18-52
Module not found: Error: Can't resolve 'common/parser/DcsParser' in 'C:\Users\Administrator\Documents\GitHub\DockerContainerCastlesOnWindows\xterm.js-4.10.0\out\common'
 @ ../out/browser/Terminal.js 21:21-54
 @ ../out/browser/public/Terminal.js 5:17-39
 @ ./client.ts 11:19-60

63 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.24.3 compiled with 63 errors in 5258 ms
jerch commented 3 years ago

It should work by doing this:


$> git clone git@github.com:xtermjs/xterm.js.git
$> cd xterm.js
$> npm install  # or yarn
$> npm start    # or yarn start
chrisjd20 commented 3 years ago

That would work to the windows demo in the ./demo directory?

jerch commented 3 years ago

Yepp, npm start points to the repo demo folder.

chrisjd20 commented 3 years ago

Doh. Sounds like me to over complicate things. I'll check when I get back and close if that checks out. Thanks.

chrisjd20 commented 3 years ago

My bad lol. Thanks!