peers / peerjs

Simple peer-to-peer with WebRTC.
https://peerjs.com
MIT License
12.38k stars 1.43k forks source link

DevTools failed to load SourceMap: Could not load content for https://unpkg.com/peerjs.min.js.map #721

Open nick0702y opened 4 years ago

nick0702y commented 4 years ago

peerjs version used 1.3.1

Error loading peerjs.min.js.map Error Report

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

Please help with this issue

Nour490-code commented 4 years ago

Same Problem

snehapaka commented 4 years ago

Same Problem

szareian commented 4 years ago

You probably have to disable javascript source map in inspect -> settings (Gear icon) -> under sources and then refresh your browser.

source: dart-lang/webdev#1500

AlyNeumann commented 4 years ago

Same problem

germanvalentino commented 3 years ago

same problem

abhay27chauhan commented 3 years ago

@szareian thanks

2Gunz commented 3 years ago

same problem

AJOO7 commented 3 years ago

same problem

derd1011 commented 3 years ago

same problem

karimk123 commented 3 years ago

Is this still not fixed??

dcarlson661 commented 3 years ago

@szareian Thanks!

Note: this is a current session only, reloads the page in the setting advanced

GiuseppeSaponieri commented 3 years ago

? So

dcarlson661 commented 3 years ago

Hi, Because I didn't realize that it was a session only and when I restarted things and reconnected the message came back. So not knowing it was session only I started looking for other problems. Until I realized I had to go back into settings and re-check the box. That's all. DC

germanvalentino commented 3 years ago

I have the same problem, it seems to be not solved yet. I think nobady is working on this issue. German

Guama1239 commented 3 years ago

El mismo problemo!!!

zahra-ove commented 3 years ago

same problem!

karimk123 commented 3 years ago

Is it fixed?

Seniorprogrammer-123 commented 3 years ago

me too

ThePlatinum commented 3 years ago

update on the fix please, it's killing here

DhruvDutta commented 3 years ago

same problem!

byhyakimaro commented 3 years ago

drug, this problem exists in 2020 and has nothing so far

Kana-creator commented 3 years ago

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

Anny one to help me out with this issue

levlaz commented 3 years ago

Hello,

First, I think its worth noting that if you are having a problem with the peerJS library itself there is a 99.999% chance it has nothing to do with this particular issue.

This error happens because your browser is unable to load the source map file from unpkg. This should have no bearing on your ability to use this library at all. The source map is strictly used for debugging within a web browser.

The specific reason why this is happening is related to this issue from parcel which is what this project uses for creating the JS bundle: https://github.com/parcel-bundler/parcel/issues/3000

If you look at the bottom of the peerjs bundle you will see this line:

//# sourceMappingURL=/peerjs.min.js.map

The sourceMappingURL should not have / because it is causing the reference url to go to https://unpkg.com/peerjs.min.js.map (which 404s) instead of https://unpkg.com/peerjs@1.3.2/dist/peerjs.min.js.map where it actually lives.

I think the proper way to fix this is by changing the configuration of parcel to make the URL relative instead of absolute.

In the meantime, if you actually need to load the source map files you can do it manually in chrome using the full sourcemap url: https://unpkg.com/peerjs@1.3.2/dist/peerjs.min.js.map

advokrat commented 3 years ago

Hey, I am in need of including this source map in a project, but it needs to load seamlessly on any device. Is there any workaround so that I can use this peerJS library robustly?

bagaswap111 commented 3 years ago

Have same problem here. i am using safari for running development. might be caused by the browser suport (?). i've tried on ms edge too, though the result is the same, just like here

image

may be would try this solution, however i havent got it clear how to change the parcel.

Hello,

First, I think its worth noting that if you are having a problem with the peerJS library itself there is a 99.999% chance it has nothing to do with this particular issue.

This error happens because your browser is unable to load the source map file from unpkg. This should have no bearing on your ability to use this library at all. The source map is strictly used for debugging within a web browser.

The specific reason why this is happening is related to this issue from parcel which is what this project uses for creating the JS bundle: parcel-bundler/parcel#3000

If you look at the bottom of the peerjs bundle you will see this line:

//# sourceMappingURL=/peerjs.min.js.map

The sourceMappingURL should not have / because it is causing the reference url to go to https://unpkg.com/peerjs.min.js.map (which 404s) instead of https://unpkg.com/peerjs@1.3.2/dist/peerjs.min.js.map where it actually lives.

I think the proper way to fix this is by changing the configuration of parcel to make the URL relative instead of absolute.

In the meantime, if you actually need to load the source map files you can do it manually in chrome using the full sourcemap url: https://unpkg.com/peerjs@1.3.2/dist/peerjs.min.js.map

any one have tried?

SecretSenator commented 3 years ago

Have same problem here. i am using safari for running development. might be caused by the browser suport (?). i've tried on ms edge too, though the result is the same, just like here

image

may be would try this solution, however i havent got it clear how to change the parcel.

Hello, First, I think its worth noting that if you are having a problem with the peerJS library itself there is a 99.999% chance it has nothing to do with this particular issue. This error happens because your browser is unable to load the source map file from unpkg. This should have no bearing on your ability to use this library at all. The source map is strictly used for debugging within a web browser. The specific reason why this is happening is related to this issue from parcel which is what this project uses for creating the JS bundle: parcel-bundler/parcel#3000 If you look at the bottom of the peerjs bundle you will see this line:

//# sourceMappingURL=/peerjs.min.js.map

The sourceMappingURL should not have / because it is causing the reference url to go to https://unpkg.com/peerjs.min.js.map (which 404s) instead of https://unpkg.com/peerjs@1.3.2/dist/peerjs.min.js.map where it actually lives. I think the proper way to fix this is by changing the configuration of parcel to make the URL relative instead of absolute. In the meantime, if you actually need to load the source map files you can do it manually in chrome using the full sourcemap url: https://unpkg.com/peerjs@1.3.2/dist/peerjs.min.js.map

any one have tried?

Is the problem fixed now?

selfcontrol7 commented 2 years ago

Please, until now, there is still no fix for this issue?

Santoshah commented 2 years ago

Hey Guys I think i have found the solution.

I was having same error as title as you can see in my screenshot.

image

GET http://localhost:443/peerjs/id?ts=16454403347120.7762317840464861 net::ERR_CONNECTION_REFUSED

my peer commnad running at 3001

santoshshah@192 video-webrtc % peerjs --port 3001
Started PeerServer on ::, port: 3001, path: / (v. 0.6.1)

As the error is pointing towards localhost:443 in the screenshot, I change the port of peerjs from 3001 to 443

peerjs --port 443

santoshshah@192 video-webrtc % peerjs --port 443 
Started PeerServer on ::, port: 443, path: / (v. 0.6.1)
Client connected: 7f449c07-dc4c-4b65-b164-8f6f503520d5

and refresh my browser and got this running message. I got Client connected: 7f449c07-dc4c-4b65-b164-8f6f503520d5.

The error message went away but I still see warning of peerjs source map warning.

image

alainpaulinn commented 2 years ago

Hello I solved this issue by downloading https://unpkg.com/peerjs@1.3.2/dist/peerjs.min.js.map file instead of loading from the url, i included the file in my Javascript folder, and at the end of the code in this file I removed //# sourceMappingURL=/peerjs.min.js.map and replaced it by //# sourceMappingURL=peerjs.min.js.map The warning should disappear