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.

I use wordpress and wavesurfer.js and everything was OK until yesterday.

Yesterday I noticed that the plugin is not working properly and I have a warning in the console:

DevTools failed to load SourceMap: Could not load content for https://unpkg.com/wavesurfer.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

and when I enter url https://unpkg.com/wavesurfer.js.map

I have error in notice:

Cannot find package wavesurfer.js.map@latest

I attach the plugin with the code in the wordpress:

 function js_wavesurfer() {
                 	wp_register_script('wavesurfer_js', 'https://unpkg.com/wavesurfer.js');
	                wp_enqueue_script('wavesurfer_js', 'https://unpkg.com/wavesurfer.js');                                         
 }
     
  add_action('wp_enqueue_scripts', 'js_wavesurfer');

How fix this problem?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
thijstriemstracommented, Oct 21, 2020

You should always use an unpkg url with a version included, for example here is 4.2.0: https://unpkg.com/wavesurfer.js@4.2.0/dist/wavesurfer.js

Agreed. But don’t use unpkg in production, host the wavesurfer.js script yourself.

0reactions
sundayzcommented, Oct 23, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing Mail and Lost Packages - USPS
If you're dealing with a lost package or mailpiece, USPS can help with a Missing Mail Search. Learn how to find lost mail,...
Read more >
What to Do If You Have a Lost or Stolen Package | Safewise
Here's what to do if a package is stolen · File a police report · Contact the sender · Report it to Amazon...
Read more >
Is Your USPS Package Missing or Not Delivered? - Stowfly
Don't forget to file a police report. Report your USPS missing package to the local police. Submit any form of evidence you may...
Read more >
Find a Missing Package That Shows as Delivered - Amazon.com
Most packages arrive on time. On very rare occasions, the tracking may show as "delivered" but it looks like your package has not...
Read more >
How to report a missing Amazon package - Android Police
This article shows you how to investigate a missing package and report it to Amazon, regardless of whether it was sold and shipped...
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