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.

[hmr] reloadStyle will trigger errors

See original GitHub issue
  • Operating System: Mac OS 10.14.4
  • Node Version: v11.6.0
  • NPM Version: 6.9.0
  • webpack Version: 4.30.0
  • mini-css-extract-plugin Version: 0.6.0

Expected Behavior

If we have a link in document which its href attribute is in data url form, reloadStyle() function shouldn’t select and parse it. For example:

<link rel="shortcut icon" href="data:;base64,=">

Actual Behavior

reloadStyle() function will select this link element and try to parse its href, then throws an error from getReloadUrl() function.

Uncaught TypeError: Failed to construct 'URL': Invalid URL

Code

no need?

How Do We Reproduce?

Add the link mentioned above to any html template.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
ScriptedAlchemycommented, Apr 15, 2019

@hsxfjames will work on this tonight, then ask you to test it again

1reaction
ScriptedAlchemycommented, Apr 13, 2019

Looking into it now, hope to have PR ready soon. This weekend is a little busy

Read more comments on GitHub >

github_iconTop Results From Across the Web

SvelteKit: Unrecoverable HMR error in <+page>: next update ...
When the used submits the form a second time, the webpage remains the same, but onMount is not triggered. For this reason, I...
Read more >
7 trigger control errors and how to fix them - MultiBriefs
5. Thumbing. Thumbing is squeezing the thumb or applying too much trigger finger/thumb pressure when firing the shot. For example, if a right- ......
Read more >
FEB 22 FIREARMS*KNIVES*AMMO*COIN AUCTION
Trigger & is a falling block breech Serial #161976 1874 "Buffalo Gun" *Stock is cracked ... excellent condition, pump barrel reload style.
Read more >
There is a problem with the flow's trigger - Power Automate
Trigger failures with 4xx status codes are typically errors that the user should fix. Common issues might include: A change in the connection ......
Read more >
Error summary #triggers - Help - UiPath Community Forum
hello every one, is there any way make the triggers stop when i close the PC and then start again when i open...
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