question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Minor: Published bundle reference error

See original GitHub issue

Only a minor thing, but noticed when I was setting up CI - If you publish the SimpleTaskSystem, the default bundles mean that relative urls inside css files will be lost (i.e. flags don’t show up, font-awesome glyphs can’t be found).

This might need to be changed at some point as it’s a limitation with the MS bundler. A workaround is to give the name of the bundle the base directory of the bundle folder:

bundles.Add(new StyleBundle("~/Content/vendorCssBundle")
    .Include("~/Content/font-awesome.css" ....)
);

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ismcagdascommented, Apr 24, 2023
1reaction
worthy7commented, Apr 22, 2020

Hi, I understand this issue. There is a potential bug with CssRewriteUrlTransform in that it does not take effect if the reference file has .min versions already.

The actual solution is to delete the min files, or to reference them in the bundler instead.

In my case, after I published the project, no rewrite had happened so it could not see where the flags.png file was for the language selector. So no flags are visible on the published version.

I simply changed it to use the minified version and the rewrite worked correctly. .Include("~/lib/famfamfam-flags/dist/sprite/famfamfam-flags.min.css", new CssRewriteUrlTransform())

But this is an active bug, please reopen

(Using .NET Framework, MVC template)

Read more comments on GitHub >

github_iconTop Results From Across the Web

ASP.NET MVC 4 Script bundling causes errors upon ...
The minification "works" even if that errors appears. The real solution for this is: Exclude .min and .map files BEFORE you publish.
Read more >
Bundle errors when cargo publish fails · Issue #3054
The meta-deta reference docs clearly explain what should be required in the metadata, but multiple minor mistakes are prone to happen sometimes.
Read more >
The bundle version, NNN, must be
Since today, I'm getting this message (including the typo) every single time I try to upload a new build of my app to...
Read more >
Hunting a bug — A True App Bundle Debugging Story
AndroidManifest.xml:26: error: ERROR getting 'android:label' attribute: attribute value reference does not exist ...
Read more >
MSBuild reference for .NET SDK projects
Reference for the MSBuild properties and items that are understood by the .NET SDK.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found