How to recreate the issue:
client-teambuilder.js?d925bdc4:1573
Uncaught TypeError: Cannot read property 'Showdown Usage' of undefined
at child.importSmogonSet (client-teambuilder.js?d925bdc4:1573)
at child.dispatchClickButton (client.js?a4b4268e:1996)
at HTMLButtonElement.e (lodash.core.js?e9be4c2d:12)
at HTMLDivElement.dispatch (jquery-2.1.4.min.js:3)
at HTMLDivElement.r.handle (jquery-2.1.4.min.js:3)
Issue line of code:
var smogonSet = formatSets['smogon.com/dex'][species][setName] || formatSets['smogon.com/stats'][species][setName];
(species = 'Riolu', setName = 'Showdown Usage')
A quick check does show that there is a Riolu entry in formatSets['smogon.com/stats'] but not in formatSets['smogon.com/dex']. Bug likely due to there not being a riolu set in the formatSets['smogon.com/dex'] and crashing out because it couldn't find the species in the list.
- Create new team
- Set format to 'LC'
- Add a Riolu
- Go to 'import/export' on Riolu
- Click 'Showdown Usage'
- Nothing happens -> Looking at the console shows that there was an error (See below)
- Profit?
client-teambuilder.js?d925bdc4:1573
Uncaught TypeError: Cannot read property 'Showdown Usage' of undefined
at child.importSmogonSet (client-teambuilder.js?d925bdc4:1573)
at child.dispatchClickButton (client.js?a4b4268e:1996)
at HTMLButtonElement.e (lodash.core.js?e9be4c2d:12)
at HTMLDivElement.dispatch (jquery-2.1.4.min.js:3)
at HTMLDivElement.r.handle (jquery-2.1.4.min.js:3)
Issue line of code:
var smogonSet = formatSets['smogon.com/dex'][species][setName] || formatSets['smogon.com/stats'][species][setName];
(species = 'Riolu', setName = 'Showdown Usage')
A quick check does show that there is a Riolu entry in formatSets['smogon.com/stats'] but not in formatSets['smogon.com/dex']. Bug likely due to there not being a riolu set in the formatSets['smogon.com/dex'] and crashing out because it couldn't find the species in the list.
Last edited by a moderator: