GridSpace / grid-apps

Browser-based Slicer for 3D Printing, CAM, Laser (Kiri:Moto) and mesh editor (Mesh:Tool)
https://grid.space/
MIT License
459 stars 143 forks source link

Error trying to use CLI #314

Open SKZ-Digi opened 1 week ago

SKZ-Digi commented 1 week ago

Hello,

I tried to use the cli to slice a file but got an error that the file three-bgu.js is missing. The file is not present although I already ran npm install. Here is my command, where I tried to slice a file 'test.stl' using the examples given in the cli folder, and the output:

(base) tgrunemann@Ubuntu20KlebeDB:~/grid-apps$ node src/kiri-run/cli --model=./t.stl --device=src/cli/kiri-fdm-device.json --process=src/cli/kiri-fdm-process.json --controller=src/cli/kiri-controller.json --output=./t.gcode --verbose { fetch: 'src/cli/kiri-source.json' } { fetch: 'src/cli/kiri-cam-tools.json' } { fetch: 'src/cli/kiri-fdm-device.json' } { fetch: 'src/cli/kiri-fdm-process.json' } loading ... /home/tgrunemann/grid-apps/src/main/gapp.js loading ... /home/tgrunemann/grid-apps/src/moto/broker.js loading ... /home/tgrunemann/grid-apps/src/moto/license.js loading ... /home/tgrunemann/grid-apps/src/add/array.js loading ... /home/tgrunemann/grid-apps/src/add/class.js loading ... /home/tgrunemann/grid-apps/src/ext/three.js loading ... /home/tgrunemann/grid-apps/src/ext/three-bgu.js node:fs:573 return binding.open( ^

Error: ENOENT: no such file or directory, open '/home/tgrunemann/grid-apps/src/ext/three-bgu.js' at Object.openSync (node:fs:573:18) at Object.readFileSync (node:fs:452:35) at run (/home/tgrunemann/grid-apps/src/kiri-run/cli.js:156:21) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { errno: -2, code: 'ENOENT', syscall: 'open', path: '/home/tgrunemann/grid-apps/src/ext/three-bgu.js' }

Can anybody help me?

Best regards

Timo

stewartoallen commented 1 week ago

looks like the cli was broken by a recent refactoring of import dependencies. it'll require more investigation to figure out a proper fix.