Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source maps cannot be loaded by Chrome DevTools #17

Open
d3lm opened this issue Aug 13, 2019 · 2 comments
Open

Source maps cannot be loaded by Chrome DevTools #17

d3lm opened this issue Aug 13, 2019 · 2 comments
Labels
bug Something isn't working 💵 Funded on Issuehunt This issue has been funded on Issuehunt help wanted Extra attention is needed

Comments

@d3lm
Copy link

d3lm commented Aug 13, 2019

Issuehunt badges

When I am serving a specific directory the devtools always complain that the source maps couldn't be loaded. That also makes sense cause Chrome will try to fetch those relative to directory that is served, meaning it looks for source maps in app://-/Users/... and obviously it cannot find them there, cause that path is not a correct path to the node modules where the source maps are located. Any idea what I could do to fix this?


IssueHunt Summary

Backers (Total: $40.00)

Become a backer now!

Or submit a pull request to get the deposits!

Tips


IssueHunt has been backed by the following sponsors. Become a sponsor

@sindresorhus sindresorhus added bug Something isn't working help wanted Extra attention is needed labels Sep 8, 2019
@issuehunt-oss
Copy link

issuehunt-oss bot commented Sep 9, 2019

@issuehunt has funded $40.00 to this issue.


@issuehunt-oss issuehunt-oss bot added the 💵 Funded on Issuehunt This issue has been funded on Issuehunt label Sep 9, 2019
@dedo1911
Copy link
Contributor

dedo1911 commented Sep 9, 2019

Can you please provide more context of what you're trying to do and what's your folder structure?

In my application, I'm using create-react-app and source maps are included in the build output folder. When I point electron-serve to the build output directory everything works fine and sources are mapped correctly in the devtools.

If I've understood correctly, you want to add another folder in the config where to search for source maps. Is that right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 💵 Funded on Issuehunt This issue has been funded on Issuehunt help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants
@sindresorhus @dedo1911 @d3lm and others