Command Set extension has stooped working on Gulp serve and on package deployment
Category
- [ ] Question
- [ ] Typo
- [x] Bug
- [ ] Additional article idea
A CommandSet extension which was working fine a couple of days ago stopped working yesterday. The console logs: Uncaught Error: There is no operation handler registered for '{"operation_4":["getItems_16","spColumnAdapter_222"]}'. at e.n (spofiles-mini-be65a0bf.js:1) at new e (splistitemsscope-is-mini-8ce35f12.js:1) at splistitemsscope-is-mini-8ce35f12.js:1 at splistitemsscope-is-mini-8ce35f12.js:1 at splistitemsscope-is-mini-8ce35f12.js:1 at splistitemsscope-is-mini-8ce35f12.js:1 at dispatch (splistitemsscope-is-mini-8ce35f12.js:1) at Object. (splistitemsscope-is-mini-8ce35f12.js:1) at listviewdataprefetch-mini-f46dba5c.js:15 at Object.next (listviewdataprefetch-mini-f46dba5c.js:15)
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
https://github.com/SharePoint/sp-dev-docs/issues/3703
So, I'm trying to repro this, and not having much luck. Can you do a couple of things?
1 - hit https://yourtenant.sharepoint.com/[siteurl]/_api/web/usercustomactions Make sure your component is listed. Also, look at what the registered section has. It should look something like: <d:RegistrationId>100</d:RegistrationId> <d:RegistrationType m:type="Edm.Int32">1</d:RegistrationType> <d:Scope m:type="Edm.Int32">3</d:Scope>
2 - When you hit your list, open the network tab and look for an XHR call to customActionElements. If you look at the response, does your component show there?
3 - Is there a request to fetch your .js file?
4 - Are there any errors in the console?
Hi @patmill thanks for the update.
All the above are true. The error on the console is on the original bug description.
Please see the steps to reproduce:
- Open the project extension
- Run gulp serve
- Copy and paste the URL generated and enter that on the URL: e.g. (LibraryURL)?debugManifestsFile=https%3A%2F%2Flocalhost%3A4321%2Ftemp%2Fmanifests.js&loadSPFX=true&fieldCustomizers=%7B"(Field Name)"%3A%7B"id"%3A"(Field ID)"%2C"properties"%3A%7B%7D%7D%7D
- Try to add a debug point to the webpack file generated
- Debug point will not hit
Background, it use to work only stopped during the recent update.
JUST and FYI, when we deploy the code it works only gulp serve errors out. This is an issue as we cannot publish the code until we debug using gulp serve.
Hope the above will help you to regenerate the issue
I can conform this.
We are seeing the same behaviour on our O365 dev tenant with our command set extension. Breakpoints are no longer hit and we get the 'There is no operation handler registered..' error @gagan2singh is experiencing.
Hi team, any update on this one. It is impacting our schedule for any deployments. Let us know if we can go ahead and raise a case with Microsoft, or this can be resolved in this forum.
It seems that the issue was reported previously, and has started occurring back https://github.com/SharePoint/sp-dev-docs/issues/3703
@gagan2singh I too experiencing the exact problem as yours. List View Command Set Extension is not working in the Debug Mode. But it works after i package the solution -> upload .sspkg file in App Catalog -> Add the extension to my site.
In the debugging mode, there were No Errors in the console. Break Points don't get hit.
@andrewconnell @VesaJuvonen is this something which can be fixed soon? we have an urgent business feature to be implemented based on this.
@gagan2singh I too experiencing the exact problem as yours. List View Command Set Extension is not working in the Debug Mode. But it works after i package the solution -> upload .sspkg file in App Catalog -> Add the extension to my site.
In the debugging mode, there were No Errors in the console. Break Points don't get hit.
@ArunRajiv Same problem for me... extension don't works No error in the console in the debugging mode.
I'm also experiencing this issue and is hampering critical development work.
@andrewconnell @VesaJuvonen Hope you guys are doing well. Can you please check what has been updated again that is causing this to break.
@andrewconnell do you have any update on this one.
Hi Team, the issue seems to be fixed on the new version of Chrome (Version 75.0.3770.142 (Official Build) (64-bit).
Command sets do not show up here either while running gulp serve. Running newest Chrome without any luck. @patmill - Any updates on this? Not able to develop without this.
We are also still experiencing the exact same issue. Installing the latest chrome did not resolve anything unfortunately.
Guys here a workaround by @jackpoz it's work for me ! :) #4374 (comment)
This workaround may help: https://github.com/SharePoint/sp-dev-docs/issues/4374#issuecomment-516815819.
Appears a regression was introduced at some point that caused the wrong URL to be generated by gulp serve which isn't telling SPO to load SPFx onto the page if it isn't already there.
Please try this and report back if it resolves your issue.
@andrewconnell, the workaround mentioned in #4374 (changing loadSPFX to loadSpfx in the query string) resolves our issue!
This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within next 7 days of this comment. Thank you for your contributions to SharePoint Developer activities.
Closing issue due no response from original author. If this issue is still occurring, please open a new issue with additional details. Notice that if you have included another related issue as additional comment on this, please open that also as separate issue, so that we can track it independently.