Running into issue with SPFX recently Cannot redefine non-configurable property 'startsWith' - sharepoint

I am running into below issue when I try configuring SPFX control on Modern Page, this particular control was working fine without any issue up until now.
Something went wrong
If the problem persists, contact the site administrator and give them the information in Technical Details.
Technical Details
[SPLoaderError.loadComponentError]:
***Failed to load component "11111111-2017-4bc3-9a39-18dfdd167e1b" (DocumentNavigationWebPart).
Original error: ***Failed to load entry point from component "11111111-2017-4bc3-9a39-18dfdd167e1b" (DocumentNavigationWebPart).
Original error: Error loading https://component-id.invalid/11111111-2017-4bc3-9a39-18dfdd167e1b_0.0.1
Cannot redefine non-configurable property 'startsWith'
***INNERERROR:
***Failed to load entry point from component "11111111-2017-4bc3-9a39-18dfdd167e1b" (DocumentNavigationWebPart).
Original error: Error loading https://component-id.invalid/11111111-2017-4bc3-9a39-18dfdd167e1b_0.0.1
Cannot redefine non-configurable property 'startsWith'
***CALLSTACK:
Error
at t._generateErrorStackForIE (https://spoprod-a.akamaihd.net/files/sp-client-prod_2019-04-19.008/sp-webpart-workbench-assembly_en-...)
at t (https://spoprod-a.akamaihd.net/files/sp-client-prod_2019-04-19.008/sp-webpart-workbench-assembly_en-...)
at t (https://spoprod-a.akamaihd.net/files/sp-client-prod_2019-04-19.008/sp-webpart-workbench-assembly_en-...)

It is a polyfill issue. Please add the below polyfill in the webpart.js file (link).
import 'core-js/es6/string';

Related

"Receiving end does not exist" error appeared while trying to migrate the chrome extension to Manifest V3

I'm trying to migrate Change Colors to Manifest V3, since support for V2 is ending.
Now I'm get stucked against the error below, which is shown in inspect views when you load the extension.
background_page.js:1 Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
background_page.js:1 Uncaught (in promise) Error: Cannot access contents of url "devtools://devtools/bundled/worker_app.html?remoteBase=https://chrome-devtools-frontend.appspot.com/serve_file/#3cf3e8c8a07d104b9e1260c910efb8f383285dc5/&browserConnection=true". Extension manifest must request permission to access this host.
Here is my Pull Request to show all changes I made.
I'm not sure this error must be resolved to work properly, or you can just ignore it.
But the extension isn't working with the current source.
How to resolve the error?
Or, if this error isn't crucial, how to make the extension to work?

Broadleaf - running locally - problem getting started the API project

I'm trying to run Heat Clinic 6.0.1 locally following getting started tutorial: https://www.broadleafcommerce.com/docs/core/current/getting-started/running-locally
I managed to run admin and site but not the API project. The application starts without problems but when I go to http://localhost:8082/api/v1/swagger-ui.html I get a 404. In the log I see this exception:
javax.servlet.ServletException: Circular view path [error]: would dispatch back to the current handler URL [/error] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)
Also trying to log in directly in the API with user broadleafapi and password gives 404.
My environment: Windows 10, jdk 8, maven 3.6
What's wrong? Can you help me? Thank you
Thanks for the report. I reproduced this and it looks like that with the update to Spring Boot 2.0, we did not appropriately override the updated property that specifies the servlet location to embedded Tomcat. Thus, when you went to /api/v1/swagger-ui.html, the application treats it exactly like that URL which is what gave the 404.
Setting the server.servlet.contextPath=/api/v1 property appropriately stripped off this path as part of the servlet context and resolved the 404.
I tested around a bit and was able to 'Authorize' the app (button at the top right of the Swagger page) with the credentials information that get spit out in the logs:
Basic auth configured with user broadleafapi and password: <<generated>>
then I was able to hit the API endpoints.
The changes you will need to make locally in your project to consume the fix are at https://github.com/BroadleafCommerce/DemoSite/commit/422d1cdc37f847afd8bec0be477ab784cbad2e9d#diff-991c59b6dbb0f619b8570d8f8779eaddR11. You will notice that I moved the original definition in default.properties over to common.properties and I recommend that you do the same. To be clear, follow these steps:
Delete the server.servlet.contextPath entry in `api/src/main/resources/runtime-properties/default.properties
Change server.servletPath in api/src/main/resources/runtime-properties/common.properties to server.servlet.contextPath
Thanks for trying out Broadleaf and the report, sorry for the rough early start!

Error upon customization publishing only when logged out

Can someone explain why this error occurs every time I have to log back in after a customization is published?
If I delete the Acumatica instance and re-create it, linking to the existing database - it then works fine. If it times out and I have to log in again, I get this error:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0117: 'PX.Data.PXLogin' does not contain a definition for 'EulaRequired'
Source Error:
Line 633: username :
Line 634: string.Format("{0}#{1}", username, company);
Line 635: if (username == "admin" && PXLogin.EulaRequired(fullname))
Line 636: {
Line 637: PXContext.Session.SetString("EulaRequired", fullname);
In your customization, are you including any of the PX*.dll libraries? If so you might be replacing the correct version needed for your site. Make sure the only dll file ins your customization are those that you created.
I'm not sure what was causing this, but I've deleted the instance of Acumatica, removed all my class library references in the customization project and started over. This seems to have solved the problem.

How to manage views programmatically in an iPad storyboard application using Monotouch

I have created an iPad storyboard application using the newest version of Monotouch. My first screen is a login screen that I only want to show if the user has not saved his credentials. If credentials are available I want to instead navigate to the UITabBarController that is the second scene. I can't seem to find any documentation on how to do this. I tried creating an instance of the UITabBarController and pushing to it but it does not work.
homeScreen = new HomeTabBarNavigator(this.Handle);
this.NavigationController.PushViewController(homeScreen,true);
HomeTabBarNavigator is a UITabBarController that is already linked to other scenes. I get the following error:
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
I assume I am getting this error because I have not defined any views to the ViewControllers property of my HomeTabBarNavigator. I was hoping that those views were already defined but that does not seem to be the case. Any ideas.
The best solution I could find is to call PerformSegue on the controller. Here is some example code:
this.PerformSegue("LoginSegue",this);
The controller that is loaded is the LoginController, and LoginSegue is a Segue that points to the HomeTabBarNavigator. While it is not perfect, the applications loaded the tabbar properly.
I used this stackoverlflow iOS question as the basis for my solution.

glimpse(sql tab) is not working for nopcommerce

In Nopcommerce, I have added nuget package Install-Package Glimpse.MVC5 it's working fine for mvc,
when I add Install-Package Glimpse.EF6 & ADO it's throwing like
Unable to define EFProfiledDbProviderServices class of type
'GlimpseDbProviderServices'. Please check that your web.config defines
a section underneath .
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.Exception: Unable to define
EFProfiledDbProviderServices class of type
'GlimpseDbProviderServices'. Please check that your web.config defines
a section underneath .
I think this error is coming because of nopcommerce database is generating dynamically.But I was not able get any solution for this issue.
Please help me out of this
I solved this issue by removing minifier tool from my project, Actually minifier is overriding GlimpseDbProviderServices.

Resources