- changed title to LWC doesn't retrieve all JS files
LWC doesn't retrieve all JS files
Hi,
I’m receiving an error with LWC component retrieve if some helper JS file exist only on SF org.
Main scenario:
Create LWC component
Create utils.js and start using this file in main LWC JS file.
Deploy component with utils.js
Delete utils.js locally.
Retrieve whole component.
Expected result:
utils.js is created.
Actual result:
utils.js is not created.
Comments (5)
-
reporter -
repo owner Hi. I’m unable to reproduce this. Here’s an example of such a component retrieved from the organization for merge and you can see the
util.js
is included in the retrieved metadata:
I’m wondering if perhaps the
utils.js
file is being retrieved but is being incorrectly matched against another file with the same name, making it look like it wasn’t retrieved and potentially overwriting the wrong file as well. Can you please enable debug logging for Metadata Retrieval, reproduce the issue in as isolated a manner as possible, and either attach or email the resultingidea.log
file for review? -
reporter Okay, I think I had this problem because I clicked on Refresh instead of Retrieve, maybe it’s reason why I have this problem.
Thank you so much for the quick response. -
repo owner Ah, yes. Refresh only brings files you already have up-to-date with the org versions. To bring down new files you must use Retrieve. Please see the user guide topic for more details on these actions:
https://bitbucket.org/RoseSilverSoftware/illuminatedcloud/wiki/User_Guide/Retrieving_Metadata.md
-
repo owner - changed status to resolved
Sounds like this can be resolved. Please feel free to reopen if not.
- Log in to comment