Closed trevor-sutherland closed 1 year ago
in reportService.js
async setItemDataSources(itemPath, dataSources) { try { const ds = []; if (Array.isArray(dataSources)) { ds = dataSources; } else { for (var key in dataSources) ds.push({ Name: key, DataSourceReference: { Reference: dataSources[key] } }); } const result = await this.client.SetItemDataSourcesAsync({ ItemPath: itemPath, DataSources: { DataSource: ds } }); return result[0]; } catch (error) { utils.errorHandler(error) } }
X [ERROR] Cannot assign to "ds" because it is a constant
node_modules/mssql-ssrs/lib/reportService.js:197:16: 197 │ ds = dataSources; ╵ ~~
The symbol "ds" was declared a constant here:
node_modules/mssql-ssrs/lib/reportService.js:195:18: 195 │ const ds = [];
Pull request #23
Problem re-assign const
in reportService.js
Error when compiling using ESBuild
X [ERROR] Cannot assign to "ds" because it is a constant
The symbol "ds" was declared a constant here: