Open jplatfordquba opened 5 months ago
Looking at the stack trace, it would seem that an IWebFile is null: https://github.com/Shazwazza/Smidge/blob/994e9451b9838e74669fd47b29489509dbfe92c7/src/Smidge.Core/BundleFileSetGenerator.cs#L113
If the file could not be found for whatever reason, I guess this could be null. To avoid this error though, probably a warning should be logged if it is null and a null check performed... though this could probably be done higher in the stack.
I see that you are are using view based declarations and also registering your JS within partials - this can be problematic since in some cases, partials are loaded in different orders, or cached, etc... and then your JS registrations are not actually done. See here for more info https://github.com/Shazwazza/Smidge/issues/198#issuecomment-1646155044
My advise would be to use predefined bundles everywhere and not use view based declarations.
Hi, I've pasted the error we're getting (see end of description). The result on the frontend was that the JS file could not be found and that meant that some components didn't perform as expected (e.g. carousels). This has only happened once in production and I can't recreate it locally, here's the setup for all environments:
Umbraco version 12.3.6 Smidge version 4.3.0.0
App settings:
Master.schtml:
Master.cshtml (Above /body):
One of the partials:
Error: