function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
garrettmmgarrettmm 

sfdx source push error

Updated SFDX to version 6.0.9-3391781 today. Was able to create a scratch org just fine, but when pushing my source that previously had no issues I recieve the following error:

"ERROR: Cannot read property 'getRepresentation' of undefined." 

Best Answer chosen by garrettmm
garrettmmgarrettmm

Issue Resolved.

SFDX seems to have become more opinionated on file naming conventions. My issue was we had a custom label file "CustomLabels.labels" which had to be changed to "CustomLabels.labels-meta.xml". 

All Answers

Tory Netherton 1Tory Netherton 1
Same issue for me.
garrettmmgarrettmm

Issue Resolved.

SFDX seems to have become more opinionated on file naming conventions. My issue was we had a custom label file "CustomLabels.labels" which had to be changed to "CustomLabels.labels-meta.xml". 

This was selected as the best answer
Tory Netherton 1Tory Netherton 1
Probably introduced by fflib eh?
Tory Netherton 1Tory Netherton 1
How on earth did you discover the source of the issue? The error message was utterly useless.