'Indesign script read from excel, Error String: Object.keys is not a function

I am trying to read from excel file in my Indesign script, This is to upload Hyperlink from the excel sheet to all my images in the Indesign document, It's working fine in windows operating system when using VB code, But VB script is not working in IOS, I am trying to use xlsx.full.min.js (which is reading from excel fine out side Indesign when trying to use in html page with javascript), But it's returning Error String: Object.keys is not a function, when I am trying to incloud the JS file in my Indesign script

I tried the following

#include "https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.15.6/xlsx.full.min.js"

then I tried to save the file with same folder of my Indesign script, and renamed the js file to xlsx.jsxinc

#include "xlsx.jsxinc"

and still returning same error

Please help

How I can encloud this js in my Indesign script https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.15.6/xlsx.full.min.js

Thanks ...



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source