admob-plus
admob-plus copied to clipboard
cordova-plugin-consent throwing TS7015 errors when building
Describe the bug
cordova-plugin-consent fails to build with error TS7015, "Element implicitly has an 'any' type because index expression is not of type 'number' in file index.ts, generated.ts.
To Reproduce Steps to reproduce the behavior:
cordova plugin add cordova-plugin-consent- Build software
- Build fails due to TS7015 error.
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
Error in question:

Build Actions:

Environment
The info command failed due to fse.readJson is not a function TypeError.
Some pertinent info, though:
Node v16.17.1 npm 8.15.0 Cordova v11.0.0
Windows 10
Additional context As I am running an outdated version of Node compared to latest available this very well could be the problem, however due to some outdated dependencies I unfortunately am not skilled enough to update, I am unable to upgrade. Please, let me know if this is the case, so that I may try an alternative solution instead.
I am a very inexperienced developer and am wayyyyy over my head on this one. Just hoping for confirmation that this is in fact my fault and not some strange issue I'm running into.
@reecepounder It seems a project config issue. If you could setup a test project for me to check, I maybe able to spot the problem.
fse.readJson is not a function problem for admob-plus should be fixed in the latest version.
@reecepounder did you try to test the latest version? all seems to work there
@ratson i think you can close this ticket