Invalid reference Product__c of type sobjectClass
yeryndo opened this issue · 7 comments
Summary
Not able to see Product Card component in Lightning App Builder
Steps To Reproduce:
- Copied bikeCard.js-meta.xml code:
Expected result
Should have been able to deploy source to org
Actual result
Cannot deploy source to org
14:56:14.82 Starting SFDX: Deploy Source to Org
=== Deploy Errors
PROJECT PATH ERRORS
──────────── ──────────────────────────────────────────────────────────────────────────────
Invalid reference Product__c of type sobjectClass in file bikeCard.js-meta.xml
14:56:17.874 ended SFDX: Deploy Source to Org
Welcome! 👋
Thank you for posting this issue. 🙇🏼♂️ We will come back to you latest within the next 48h (working days). Stay tuned!
Hello @yeryndo,
Have you removed the Product field before deployment?
Remove the Product custom field from the Case object with the following steps:
In Setup, click the Object Manager tab.
Click on the Case object.
Click Fields & Relationships.
Locate the Product picklist field and click Delete from the row menu.
Confirm deletion by clicking Delete.
Yes, I did, and it still gave me the same error.
Flagging this as stale, as there was no recent activity within the last 14 days. 🧐
The only way I was able to complete this part of the module was by removing this portion:
Product__cThe challenge itself doesn't check for whatever this is supposed to do. ^
Also, the challenge doesn't say to copy the second meta.xml that you see, but is only showing you an EXAMPLE of what the file looks like from a different repo, though it'd be nice if the code used was different.
I just finished the challenge myself without needing it.
The api version in the XML file should match the api version in sfdx-project.json
The only way I was able to complete this part of the module was by removing this portion:
Product__c
The challenge itself doesn't check for whatever this is supposed to do. ^Also, the challenge doesn't say to copy the second meta.xml that you see, but is only showing you an EXAMPLE of what the file looks like from a different repo, though it'd be nice if the code used was different.
I just finished the challenge myself without needing it.
Helpfull...