Azure Functions serverless error
-
Hi,
I followed this guide: https://jsreport.net/learn/azure-functions-serverless
I get the following error:
Error: ENOENT: no such file or directory, mkdir 'logs'
at Object.mkdirSync (node:fs:1349:3)
at File._createLogDirIfNotExist (/home/site/wwwroot/node_modules/winston/lib/winston/transports/file.js:691:10)
at new File (/home/site/wwwroot/node_modules/winston/lib/winston/transports/file.js:92:28)
at configureLogger (/home/site/wwwroot/node_modules/@jsreport/jsreport-core/lib/main/logger.js:169:31)
at MainReporter.extensionsLoad (/home/site/wwwroot/node_modules/@jsreport/jsreport-core/lib/main/reporter.js:102:5)
at async MainReporter.init (/home/site/wwwroot/node_modules/@jsreport/jsreport-core/lib/main/reporter.js:175:7)
at async module.exports (/home/site/wwwroot/HttpTrigger1/index.js:16:9)
-
I've tried both jsreport versions 3.4.1 (in the starterkit package.json) and the latest 3.6.1 and both work well without error.
Are you sure you followed the guide with starterkit? Especially this config needs to be in your config file
https://github.com/jsreport/jsreport-azure-functions-starter-kit/blob/master/prod.config.json#L12