mbutler/strat-o-rama

undefined (reading 'PA')

Opened this issue · 0 comments

Microsoft Windows [Version 10.0.22631.4391]
(c) Microsoft Corporation. All rights reserved.

F:\GAMES\sports\strat-o-rama-master>node app "TOR"
Addison Barger card generated successfully.
Chris Bassitt card generated successfully.
Jos Berros card generated successfully.
Steward Berroa card generated successfully.
Bo Bichette card generated successfully.
F:\GAMES\sports\strat-o-rama-master\player.js:528
let TBF = _.toFinite(player_pitching.PA)
^

TypeError: Cannot read properties of undefined (reading 'PA')
at somPD (F:\GAMES\sports\strat-o-rama-master\player.js:528:46)
at getPlayer (F:\GAMES\sports\strat-o-rama-master\player.js:74:27)
at F:\GAMES\sports\strat-o-rama-master\app.js:29:30
at arrayEach (F:\GAMES\sports\strat-o-rama-master\node_modules\lodash\lodash.js:530:11)
at Function.forEach (F:\GAMES\sports\strat-o-rama-master\node_modules\lodash\lodash.js:9410:14)
at Object. (F:\GAMES\sports\strat-o-rama-master\app.js:28:7)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)

Node.js v20.18.0

F:\GAMES\sports\strat-o-rama-master>