Gcode viewer not showing when using laser

What is the problem?

I have added a laser to my anycubic i3 mega s and am generating gcodes with inkscape or lightburn, still experimenting with different software. However any gcode generated doesnt show up in the gcode viewer. It works fine when I 3d print something which was generated by cura but not for lightburn or inkscape. I figure it could be because of no extrusion commands? Can I add these at start gcode to make the gcode viewer work or is there a work around for laser code.

Appreciate any help. Love Octopi it would be great to get this working.

What did you already try to solve it?

tried grbl viewer but that didnt work

Complete Logs

octoprint.log, serial.log or output on terminal tab at a minimum, browser error console if UI issue ... no logs, no support! Not log excerpts, complete logs.)

WRITE HERE

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible

im using marlin 1.1.9 f/w

I found a solution.

Just needed to insert a z axis command in the gcode start.

I used G0 Z5 and it displays in the gcode viewer fine.

Also interested in adding a laser to my Anycubic i3Mega S - - can you share what laser (power and source) and any additional things needed?