Whenever I imported PCF solution I got this error:
An error has occurred. Try this action again. If the problem continues, check the Microsoft Dynamics 365 Community for solutions or contact your organization's Microsoft Dynamics 365 Administrator. Finally, you can contact Microsoft Support. : Microsoft.Crm.Tools.ImportExportPublish.ImportCustomControlException: CustomControl with name d365crnr.DataRangeControl failed to import with error: Webresource content size is too big. ---> Microsoft.Crm.CrmException: Webresource content size is too big.
Anyone face this issue?
As part of the MSBuild pass in the parameter '/p:configuration=release' or if you are using VS2017/2019, set the configuration to Release.
May be too late to reply. But it seems that it is possible to reduce the bundle.js file size by using following command when you build custom control
This will tell webpack to build js in production mode. Also it generates unmanaged solution which you can import on your dev environment.
I feel like i ran into this issue early on and fixed it by upping the value for "File size limit for attachments" which also affects the size of WebResources and annotations.
In case FluentUI is used, usually the reason for a big bundle size (even minimized) is importing the whole library instead of taking only the needed components. In that case, maybe my blog can help to keep a small bundle size: https://dianabirkelbach.wordpress.com/2020/07/27/fluentui-granular-imports/
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.