admob-plus icon indicating copy to clipboard operation
admob-plus copied to clipboard

cordova-plugin-consent throwing TS7015 errors when building

Open reecepounder opened this issue 3 years ago • 3 comments
trafficstars

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:

  1. cordova plugin add cordova-plugin-consent
  2. Build software
  3. Build fails due to TS7015 error.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots Error in question: image

Build Actions: image

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 avatar Nov 06 '22 05:11 reecepounder

@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.

ratson avatar Jun 20 '23 18:06 ratson

@reecepounder did you try to test the latest version? all seems to work there

EYALIN avatar Jul 04 '23 09:07 EYALIN

@ratson i think you can close this ticket

EYALIN avatar Jul 13 '23 09:07 EYALIN