salesforcecli/plugin-lightning-dev

Will not update org when local changes are saved

Opened this issue · 7 comments

I have installed version 1.93 of the plugin in my org. When I run the command, it opens the org saying Local Dev is enabled. However whenever I try to update a component locally, those changes do not reflect in the lwc. Here is a screenshot of the command I'm running:

image

I have tried to downgrade to 1.80 with the same results. I had a call with SF technical support and we went through a few things and all turned out to be setup correctly.

This is the url that is shown on the SF org and it looks correct:
/lightning/n/intlAgree__Attribute_Manager?0.aura.ldpServerUrl=ws%3A%2F%2Flocalhost%3A8081&0.aura.ldpServerId=1I9Nq0000003RjdKAE&0.aura.mode=DEVPREVIEW

Is there a way I can debug this to see what's happening?

Same here.

I am currently in lightning-dev 1.9.3 and here's my output for sf --version

@salesforce/cli/2.66.7 darwin-arm64 node-v20.15.1

I am currently using the sf CLI installed through npm, but I was using the .pkg before this without any luck either.

@apettitt Is there an error message in the browser console? With the information provided in this issue, we can only try to guess the likely cause.

Does you org have Lightning Web Security enabled? We have a known issue related to that.
Local Dev wasn't working if an org was using Legacy Locker service(#213) and we are rolling out(starting 11/20/2024) a fix for that.

@ravijayaramappa - yes, I have lws turned on as the manage package I write for requires lws. Here are some things I found in the console, not sure if they'll help or not. The component I'm working on is called attributeManager and the Managed Package namespace is intlAgree.

[LAF:PlatformStateManager:ResolvePage] Input pageReference {"type":"standard__navItemPage","attributes":{"apiName":"intlAgree__Attribute_Manager"},"state":{}} produced page {"type":"standard__navItemPage","attributes":{"apiName":"intlAgree__Attribute_Manager"},"componentDefRef":{"componentDef":"app_flexipage:lwcAppFlexipageWrapper","attributes":{"flexiPageDeveloperName":"intlAgree__Attribute_Manager","label":"Attribute Manager","iconColor":"50ceb9","iconUrl":"https://data-customization-9101-dev-ed.scratch.my.salesforce.com/img/icon/t4v35/custom/custom8_120.png"}},"state":{}}
aura_devpreview.js:45803 [LAF:Filters:applyPageFilters] invoked: {"status":"PENDING","disposition":null,"dispositionValue":null,"to":{"pageReference":{"type":"standard__navItemPage","attributes":{"apiName":"intlAgree__Attribute_Manager"},"state":{}},"replace":false,"redirect":false,"page":{"type":"standard__navItemPage","attributes":{"apiName":"intlAgree__Attribute_Manager"},"componentDefRef":{"componentDef":"app_flexipage:lwcAppFlexipageWrapper","attributes":{"flexiPageDeveloperName":"intlAgree__Attribute_Manager","label":"Attribute Manager","iconColor":"50ceb9","iconUrl":"https://data-customization-9101-dev-ed.scratch.my.salesforce.com/img/icon/t4v35/custom/custom8_120.png"}},"state":{}},"location":"/lightning/n/intlAgree__Attribute_Manager?0.aura.ldpServerUrl=ws%3A%2F%2Flocalhost%3A8081&0.aura.ldpServerId=1I9Nq0000003RjdKAE&0.aura.mode=DEVPREVIEW"},"from":{"location":"/lightning/n/intlAgree__Home?0.aura.ldpServerUrl=ws%3A%2F%2Flocalhost%3A8081&0.aura.ldpServerId=1I9Nq0000003RjdKAE&0.aura.mode=DEVPREVIEW","pageReference":{"type":"standard__app","attributes":{"appTarget":null,"pageRef":{"type":"standard__navItemPage","attributes":{"apiName":"intlAgree__Home"},"state":{}}}}},"subscribers":[null]}
aura_devpreview.js:45803 [LAF:StateFilters:replaceComponentDef] invoked
aura_devpreview.js:45803 [LAF:StateFilters:eventTypeDetect] invoked
aura_devpreview.js:45803 [LAF:StateFilters:contentDetect] invoked
aura_devpreview.js:45803 [LAF:StateFilters:contentDetect] applied. pageTx.to.page: {"type":"standard__navItemPage","attributes":{"apiName":"intlAgree__Attribute_Manager"},"componentDefRef":{"componentDef":"app_flexipage:lwcAppFlexipageWrapper","attributes":{"flexiPageDeveloperName":"intlAgree__Attribute_Manager","label":"Attribute Manager","iconColor":"50ceb9","iconUrl":"https://data-customization-9101-dev-ed.scratch.my.salesforce.com/img/icon/t4v35/custom/custom8_120.png"}},"state":{}}
aura_devpreview.js:45803 [LAF:Filters:applyPageFilters] applied: to.page = {"type":"standard__navItemPage","attributes":{"apiName":"intlAgree__Attribute_Manager"},"componentDefRef":{"componentDef":"app_flexipage:lwcAppFlexipageWrapper","attributes":{"flexiPageDeveloperName":"intlAgree__Attribute_Manager","label":"Attribute Manager","iconColor":"50ceb9","iconUrl":"https://data-customization-9101-dev-ed.scratch.my.salesforce.com/img/icon/t4v35/custom/custom8_120.png"}},"state":{}}
aura_devpreview.js:45803 jobLibrary - Job: handlePageTx, Stage: tasks, finished processing (8) functions.
aura_devpreview.js:45803 jobLibrary - Job: handlePageTx, Stage: posttasks, skipped processing: no functions.
aura_devpreview.js:45803 jobLibrary - Job: handlePageTx, Stage: after, start processing.
aura_devpreview.js:45803 -----------------------------------------------
[LAF:OneAppRouter:onExternalLocationChange] invoked: /lightning/n/intlAgree__Attribute_Manager?0.aura.ldpServerUrl=ws%3A%2F%2Flocalhost%3A8081&0.aura.ldpServerId=1I9Nq0000003RjdKAE&0.aura.mode=DEVPREVIEW

aura_devpreview.js:45803 [LAF:Filters:applyLocationFilters] invoked: {"status":"PENDING","disposition":null,"dispositionValue":null,"to":{"location":"/lightning/n/intlAgree__Attribute_Manager?0.aura.ldpServerUrl=ws%3A%2F%2Flocalhost%3A8081&0.aura.ldpServerId=1I9Nq0000003RjdKAE&0.aura.mode=DEVPREVIEW","isHistorical":true},"from":{"location":"/lightning/n/intlAgree__Attribute_Manager?0.aura.ldpServerUrl=ws%3A%2F%2Flocalhost%3A8081&0.aura.ldpServerId=1I9Nq0000003RjdKAE&0.aura.mode=DEVPREVIEW","pageReference":{"type":"standard__app","attributes":{"appTarget":null,"pageRef":{"type":"standard__navItemPage","attributes":{"apiName":"intlAgree__Attribute_Manager"},"state":{}}}}},"subscribers":[]}
aura_devpreview.js:45803 jobLibrary - Job: handlePageTx, Stage: after, finished processing (1) functions.
aura_devpreview.js:45803 [LAF:LocationFilters:blockSameLocationChange] invoked
aura_devpreview.js:45803 [LAF:LocationFilters:blockSameLocationChange] applied, with result: {"status":"PENDING","disposition":"BLOCKED","dispositionValue":"to.location is equal to the current/from location.","to":{"location":"/lightning/n/intlAgree__Attribute_Manager?0.aura.ldpServerUrl=ws%3A%2F%2Flocalhost%3A8081&0.aura.ldpServerId=1I9Nq0000003RjdKAE&0.aura.mode=DEVPREVIEW","isHistorical":true},"from":{"location":"/lightning/n/intlAgree__Attribute_Manager?0.aura.ldpServerUrl=ws%3A%2F%2Flocalhost%3A8081&0.aura.ldpServerId=1I9Nq0000003RjdKAE&0.aura.mode=DEVPREVIEW","pageReference":{"type":"standard__app","attributes":{"appTarget":null,"pageRef":{"type":"standard__navItemPage","attributes":{"apiName":"intlAgree__Attribute_Manager"},"state":{}}}}},"subscribers":[]}
aura_devpreview.js:45803 [LAF:ContentManager:CreateWrapper] Creating wrapper that starts minimized
aura_devpreview.js:45803 [LAF:applyLocationFilters] applied. to.location = /lightning/n/intlAgree__Attribute_Manager?0.aura.ldpServerUrl=ws%3A%2F%2Flocalhost%3A8081&0.aura.ldpServerId=1I9Nq0000003RjdKAE&0.aura.mode=DEVPREVIEW
aura_devpreview.js:45803 jobLibrary - Job: handlePageTx completed processing with a status of completed
aura_devpreview.js:45803 jobLibrary - Finished running. All jobs processed.
aura_devpreview.js:45803 [LAF:OneAppRouter:resolveLocation] {"status":"COMPLETE","disposition":"BLOCKED","dispositionValue":"to.location is equal to the current/from location.","to":{"location":"/lightning/n/intlAgree__Attribute_Manager?0.aura.ldpServerUrl=ws%3A%2F%2Flocalhost%3A8081&0.aura.ldpServerId=1I9Nq0000003RjdKAE&0.aura.mode=DEVPREVIEW","isHistorical":true},"from":{"location":"/lightning/n/intlAgree__Attribute_Manager?0.aura.ldpServerUrl=ws%3A%2F%2Flocalhost%3A8081&0.aura.ldpServerId=1I9Nq0000003RjdKAE&0.aura.mode=DEVPREVIEW","pageReference":{"type":"standard__app","attributes":{"appTarget":null,"pageRef":{"type":"standard__navItemPage","attributes":{"apiName":"intlAgree__Attribute_Manager"},"state":{}}}}},"subscribers":[]}
aura_devpreview.js:45803 [LAF:Filters:applyPageRefFilters] invoked: {"status":"COMPLETE","disposition":"BLOCKED","dispositionValue":"to.location is equal to the current/from location.","to":{"location":"/lightning/n/intlAgree__Attribute_Manager?0.aura.ldpServerUrl=ws%3A%2F%2Flocalhost%3A8081&0.aura.ldpServerId=1I9Nq0000003RjdKAE&0.aura.mode=DEVPREVIEW","isHistorical":true},"from":{"location":"/lightning/n/intlAgree__Attribute_Manager?0.aura.ldpServerUrl=ws%3A%2F%2Flocalhost%3A8081&0.aura.ldpServerId=1I9Nq0000003RjdKAE&0.aura.mode=DEVPREVIEW","pageReference":{"type":"standard__app","attributes":{"appTarget":null,"pageRef":{"type":"standard__navItemPage","attributes":{"apiName":"intlAgree__Attribute_Manager"},"state":{}}}}},"subscribers":[]}
aura_devpreview.js:45803 [LAF:Filters:applyPageRefFilters] applied. to.pageReference = undefined
aura_devpreview.js:45803 [LAF:OneAppRouter:stripOutAppTarget] {"status":"COMPLETE","disposition":"BLOCKED","dispositionValue":"to.location is equal to the current/from location.","to":{"location":"/lightning/n/intlAgree__Attribute_Manager?0.aura.ldpServerUrl=ws%3A%2F%2Flocalhost%3A8081&0.aura.ldpServerId=1I9Nq0000003RjdKAE&0.aura.mode=DEVPREVIEW","isHistorical":true},"from":{"location":"/lightning/n/intlAgree__Attribute_Manager?0.aura.ldpServerUrl=ws%3A%2F%2Flocalhost%3A8081&0.aura.ldpServerId=1I9Nq0000003RjdKAE&0.aura.mode=DEVPREVIEW","pageReference":{"type":"standard__app","attributes":{"appTarget":null,"pageRef":{"type":"standard__navItemPage","attributes":{"apiName":"intlAgree__Attribute_Manager"},"state":{}}}}},"subscribers":[]}
aura_devpreview.js:45803 [LAF:OneAppRouter:resolvePage] invoked with pageTx: {"status":"COMPLETE","disposition":"BLOCKED","dispositionValue":"to.location is equal to the current/from location.","to":{"location":"/lightning/n/intlAgree__Attribute_Manager?0.aura.ldpServerUrl=ws%3A%2F%2Flocalhost%3A8081&0.aura.ldpServerId=1I9Nq0000003RjdKAE&0.aura.mode=DEVPREVIEW","isHistorical":true},"from":{"location":"/lightning/n/intlAgree__Attribute_Manager?0.aura.ldpServerUrl=ws%3A%2F%2Flocalhost%3A8081&0.aura.ldpServerId=1I9Nq0000003RjdKAE&0.aura.mode=DEVPREVIEW","pageReference":{"type":"standard__app","attributes":{"appTarget":null,"pageRef":{"type":"standard__navItemPage","attributes":{"apiName":"intlAgree__Attribute_Manager"},"state":{}}}}},"subscribers":[]}

Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was receivedUnderstand this errorAI
metricsApi.ts:20

@apettitt could you share logs from $HOME/.sf directory? There should be a file like .sf/sf-2024-08-07.log for the day you ran the command on. You can either share the entire file or just share part of it around the time you ran this command.

@abdulsattar I've tried over several days so I'm going to just attach all of them. Update, I did try my 3 different browsers (Chrome, Firefox and Edge). All 3 had the same results.

sf-2024-11-19.log
sf-2024-11-20.log
sf-2024-11-13.log
sf-2024-11-14.log
sf-2024-11-15.log
sf-2024-11-18.log

Same issue. No erros in console. Get these logs after first file save:

{
	"name": "CLS",
	"value": 0.07,
	"delta": 0.07,
	"id": "v3-1732634081849-5565824098197",
	"navType": "reload",
	"wvVersion": "3.5.2"
}
{
	"timestamp": 1732634093725.4,
	"sequence": 95,
	"schemaSequence": 4,
	"loggerName": "WebVitals",
	"pagePayload": {
		"schema": {
			"namespace": "sf.lex",
			"name": "PagePayload",
			"pbjsSchema": {
				"nested": {
					"sf": {
						"nested": {
							"lex": {
								"nested": {
									"PagePayload": {
										"fields": {
											"apiName": {
												"id": 2,
												"type": "string"
											},
											"entityType": {
												"id": 7,
												"type": "string"
											},
											"pageSequence": {
												"id": 1,
												"type": "uint32"
											},
											"context": {
												"id": 5,
												"type": "string"
											},
											"panel": {
												"id": 3,
												"type": "string"
											},
											"developerName": {
												"id": 8,
												"type": "string"
											},
											"url": {
												"id": 4,
												"type": "string"
											},
											"entity": {
												"id": 6,
												"type": "string"
											}
										}
									}
								}
							}
						}
					}
				}
			}
		},
		"payload": {
			"pageSequence": 1,
			"apiName": "bn2gpv1__Reservation",
			"url": "/lightning/n/bn2gpv1__Reservation?0.aura.ldpServerUrl=ws%3A%2F%2Flocalhost%3A8081&0.aura.ldpServerId=1I9Q10000001bGrKAI&0.aura.mode=DEVPREVIEW",
			"context": "one:auraContainer",
			"entityType": "bn2gpv1__Reservation"
		}
	},
	"appPayload": {
		"schema": {
			"namespace": "sf.lex",
			"name": "AppPayload",
			"pbjsSchema": {
				"nested": {
					"sf": {
						"nested": {
							"lex": {
								"nested": {
									"AppPayload": {
										"fields": {
											"jtbdPhase": {
												"id": 5,
												"type": "string"
											},
											"appName": {
												"id": 2,
												"type": "string"
											},
											"appType": {
												"id": 3,
												"type": "string"
											},
											"jtbdName": {
												"id": 4,
												"type": "string"
											},
											"jtbdCount": {
												"id": 6,
												"type": "uint32"
											},
											"appNamespace": {
												"id": 1,
												"type": "string"
											}
										}
									}
								}
							}
						}
					}
				}
			}
		},
		"payload": {
			"appNamespace": "bn2gpv1",
			"appName": "BN",
			"appType": "Standard"
		}
	},
	"loggerAppName": "one:one",
	"connectionType": "4g",
	"clientSessionId": "026f3be5898d0a4d",
	"age": 13335.5
}

Tried with locker and LWS, Chrome and Firefox.
@salesforce/cli/2.67.7 win32-x64 node-v22.11.0

Then make sure to connect with the intellect report and developer won't work until you connect the process