- we use Github
- Github
- Github Actions
- Typescript Angular Monorepo NX
- Error: ScannerEngine: TypeError: Cannot read properties of undefined (reading ‘0’)
- Newly added logs something about udg not sure what is that
Hey there.
Thanks for reporting this. Could you please provide some additional information? Specifically, the full log output and stacktrace where the error appears (with at least a few lines before and after the error message.)
If there are some new logs you haven’t seen before, feel free to add those too! The more information you can provide, the better.
The new log I noticed is this 05:07:20.853 INFO Written udg to file: ...
Yes here is the full error:
05:07:20.892 ERROR TypeError: Cannot read properties of undefined (reading '0')
05:07:20.892 ERROR Occurred while linting /home/runner/_work/ems-frontend/ems-frontend/apps/blueprint-core-components/src/app/widget-root/components/activity-history/activity-history.component.ts:1
05:07:20.892 ERROR Rule: "sonarjs/S1874"
05:07:20.892 ERROR at Lqs (/home/runner/_work/ems-frontend/ems-frontend/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:581:133065)
05:07:20.892 ERROR at Uqs (/home/runner/_work/ems-frontend/ems-frontend/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:581:137787)
05:07:20.892 ERROR at Z4n (/home/runner/_work/ems-frontend/ems-frontend/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:581:137539)
05:07:20.892 ERROR at gl (/home/runner/_work/ems-frontend/ems-frontend/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:581:137221)
05:07:20.892 ERROR at fft (/home/runner/_work/ems-frontend/ems-frontend/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:581:130488)
05:07:20.892 ERROR at k6 (/home/runner/_work/ems-frontend/ems-frontend/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:581:130631)
05:07:20.892 ERROR at il (/home/runner/_work/ems-frontend/ems-frontend/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:581:326113)
05:07:20.892 ERROR at $ie (/home/runner/_work/ems-frontend/ems-frontend/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:581:322993)
05:07:20.892 ERROR at $Ws (/home/runner/_work/ems-frontend/ems-frontend/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:581:328781)
05:07:20.892 ERROR at t$s (/home/runner/_work/ems-frontend/ems-frontend/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:581:336058)
Hi any updates on this? It is blocking our frontend development. We haven’t change anything from our side and it started suddenly happening.
Hey there.
This looks quite similar to Sonarcloud for azure devops yaml v3 “cannot read properties” js.
The bug is on the Typescript compiler side and not yet triaged.
You can exclude the given file from analysis or disable S1874 in your Javascript/Typescript Quality Profile.
I’m not sure if this is linked to your analysis slowing down. You’d need to share your complete logs (preferably at DEBUG
level, sonar.verbose=true
)