I have the following Realm function: exports = function(){ const XLSX = require("xlsx"); };
However, I get an error “execution time limit exceeded” when I run it. I’d appreciate any help solving this.
Thanks for the update! I’ve also tried uploading an alternative package (exceljs - npm) but received the following error message: Failed to upload node_modules.tar.gz: unknown: Unexpected token (62:14) 60 | } 61 | > 62 | async function* exploreWalkAsync(dir, path, followSyslinks, useStat, shouldSkip, strict) { | ^ 63 | let files = await readdir(path + dir, strict); 64 | for(const file of files) { 65 | let name = file.name;
Hi,
I ran into the same problem. Using SheetJS in Realm functions is very slow. Running the function in the console works, but it takes more than 40 seconds to execute. Most of the time seems to be taken up when calling ‘const XLSX = require(“xlsx”);’.
When calling the very same function from within my android app I run into a timeout (already after 10 seconds). I opened an issue about it: Can not change the timeout when calling a function · Issue #7455 · realm/realm-java · GitHub
I tried using exceljs instead, but I get the same error as Ilya.
Would be great to get an update about it, because it is very important for me to be able to send some data as an excel sheet. The sending part with AWS SES works fine.