akhenry / openmct-yamcs

Open MCT YAMCS plugin
13 stars 9 forks source link

YAMCS example not working #459

Closed guidoSNT closed 3 months ago

guidoSNT commented 4 months ago

I may be doing something wrong but when running the example I get a blank screen in the web page.

Setup:

The log after the installation command is:

npm WARN deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods insteaddules/supports-color Completed in 2ms
npm WARN deprecated sinon@14.0.0: 16.1.1

> openmct-yamcs@4.0.0-next prepare
> npm run build:dist

> openmct-yamcs@4.0.0-next build:dist
> webpack --config ./.webpack/webpack.prod.mjs

asset openmct-yamcs.js 50.1 KiB [emitted] [minimized] (name: openmct-yamcs) 1 related asset
orphan modules 140 KiB [orphan] 33 modules
runtime modules 617 bytes 3 modules
cacheable modules 161 KiB
  ./src/openmct-yamcs.js + 33 modules 149 KiB [built] [code generated]
  ./node_modules/eventemitter3/index.js 8.93 KiB [built] [code generated]
  ./node_modules/file-saver/dist/FileSaver.min.js 2.64 KiB [built] [code generated]
webpack 5.90.3 compiled successfully in 1272 ms

added 615 packages, and audited 616 packages in 50s

148 packages are looking for funding
  run `npm fund` for details

2 moderate severity vulnerabilities

To address all issues, run:
  npm audit fix --force

Run `npm audit` for details.

> openmct-yamcs@4.0.0-next build:example
> npm install openmct@unstable --no-save

up to date, audited 616 packages in 2s

148 packages are looking for funding
  run `npm fund` for details

2 moderate severity vulnerabilities

To address all issues, run:
  npm audit fix --force

Run `npm audit` for details.

> openmct-yamcs@4.0.0-next postbuild:example
> node check-optional-dependencies.mjs

The optional dependency openmct is not installed. Please install it before building.
Error: ENOENT: no such file or directory, open '/home/guido/gits/openmct-yamcs/node_modules/openmct/package.json'

> openmct-yamcs@4.0.0-next start
> npx webpack serve --config ./.webpack/webpack.dev.mjs

<i> [webpack-dev-server] [HPM] Proxy created: /yamcs-proxy/  -> http://0.0.0.0:8090/
<i> [webpack-dev-server] [HPM] Proxy rewrite rule created: "^/yamcs-proxy/" ~> ""
<i> [webpack-dev-server] [HPM] Proxy created: /yamcs-proxy-ws/  -> ws://0.0.0.0:8090/api/websocket
<i> [webpack-dev-server] [HPM] Proxy rewrite rule created: "^/yamcs-proxy-ws/" ~> ""
<i> [webpack-dev-server] Project is running at:
<i> [webpack-dev-server] Loopback: http://localhost:9000/
<i> [webpack-dev-server] On Your Network (IPv4): http://192.168.0.143:9000/
<i> [webpack-dev-server] Content not from webpack is served from '/home/guido/gits/openmct-yamcs/example, /home/guido/gits/openmct-yamcs/node_modules/openmct/dist' directory
asset openmct-yamcs-example.js 1.17 MiB [emitted] [big] (name: openmct-yamcs-example)
asset openmct-yamcs.js 1.16 MiB [emitted] [big] (name: openmct-yamcs)
runtime modules 54.8 KiB 24 modules
javascript modules 336 KiB
  modules by path ./src/ 149 KiB
    modules by path ./src/providers/ 114 KiB 24 modules
    modules by path ./src/plugins/binaryToHexFormatter/*.js 6.18 KiB 4 modules
    modules by path ./src/*.js 22.3 KiB 3 modules
    modules by path ./src/actions/exportToCSV/*.js 6.25 KiB 2 modules
  modules by path ./node_modules/ 184 KiB
    modules by path ./node_modules/webpack-dev-server/client/ 69.8 KiB 16 modules
    modules by path ./node_modules/webpack/hot/*.js 5.18 KiB 4 modules
    modules by path ./node_modules/html-entities/lib/*.js 78.7 KiB 4 modules
    + 4 modules
  ./example/index.js 3.34 KiB [built] [code generated]
./src/limits-config.json 100 bytes [built] [code generated]
webpack 5.90.3 compiled successfully in 635 ms