Skip to content

fix: ims export

fix: ims export #18

Triggered via push January 22, 2026 21:14
Status Failure
Total duration 4m 28s
Artifacts

test-action.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

4 errors
test-action
Export failed
test-action
Error output: /home/runner/work/LiaScript-Exporter/LiaScript-Exporter/dist/index.js:279 </tincan>`}async function $b3496016a321b67a$export$372e2d09604f52f0(e,r){var t,n;let a=await $070fc7e985d52a73$export$6b76988456c0292f(),o=$070fc7e985d52a73$export$7f7b8152cc673abe(),i=$3MWDR$path.join(a,"pro");await $3MWDR$fsextra.copy($3MWDR$path.join(o,"./assets/xapi"),i),await $3MWDR$fsextra.copy($3MWDR$path.join(o,"./assets/common"),i),await $3MWDR$fsextra.copy(e.path,i);let c=$3MWDR$fsextra.readFileSync($3MWDR$path.join(i,"index.html"),"utf8");e.key&&(c=$070fc7e985d52a73$export$31a09876afc8115c(e.key,c)),console.log("Adding xAPI configuration ...",r.lia.sections.length),c=$070fc7e985d52a73$export$a976684a0efeb93f('<script src="config.js"><\/script>',c),await $070fc7e985d52a73$export$552bfb764b5cd2b4($3MWDR$path.join(i,"config.js"),"window.config_ = "+JSON.stringify({task:r.task,quiz:r.quiz,survey:r.survey,masteryThreshold:e["xapi-mastery-threshold"]||.8,progressThreshold:e["xapi-progress-threshold"]||.9,totalSlides:r.lia.sections.length})+";"),c=$070fc7e985d52a73$export$a976684a0efeb93f(`<script> ^ TypeError: Cannot read properties of undefined (reading 'sections') at $b3496016a321b67a$export$372e2d09604f52f0 (/home/runner/work/LiaScript-Exporter/LiaScript-Exporter/dist/index.js:279:567) Node.js v20.20.0
test-action
CLI exited with code 1
test-action
/home/runner/work/LiaScript-Exporter/LiaScript-Exporter/dist/index.js:279 </tincan>`}async function $b3496016a321b67a$export$372e2d09604f52f0(e,r){var t,n;let a=await $070fc7e985d52a73$export$6b76988456c0292f(),o=$070fc7e985d52a73$export$7f7b8152cc673abe(),i=$3MWDR$path.join(a,"pro");await $3MWDR$fsextra.copy($3MWDR$path.join(o,"./assets/xapi"),i),await $3MWDR$fsextra.copy($3MWDR$path.join(o,"./assets/common"),i),await $3MWDR$fsextra.copy(e.path,i);let c=$3MWDR$fsextra.readFileSync($3MWDR$path.join(i,"index.html"),"utf8");e.key&&(c=$070fc7e985d52a73$export$31a09876afc8115c(e.key,c)),console.log("Adding xAPI configuration ...",r.lia.sections.length),c=$070fc7e985d52a73$export$a976684a0efeb93f('<script src="config.js"><\/script>',c),await $070fc7e985d52a73$export$552bfb764b5cd2b4($3MWDR$path.join(i,"config.js"),"window.config_ = "+JSON.stringify({task:r.task,quiz:r.quiz,survey:r.survey,masteryThreshold:e["xapi-mastery-threshold"]||.8,progressThreshold:e["xapi-progress-threshold"]||.9,totalSlides:r.lia.sections.length})+";"),c=$070fc7e985d52a73$export$a976684a0efeb93f(`<script> ^ TypeError: Cannot read properties of undefined (reading 'sections') at $b3496016a321b67a$export$372e2d09604f52f0 (/home/runner/work/LiaScript-Exporter/LiaScript-Exporter/dist/index.js:279:567) Node.js v20.20.0