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.

0.13 beta4 - devtools / source not found when clicking links from console

See original GitHub issue

In beta4 on Ubuntu 15.10 64-bit, clicking a link to source from the console opens a new ERR_FAILED browser window with “This webpage is not available,” rather than displaying the source within devtools:

package.json:

{
  "name": "sample",
  "main": "index.html"
}

index.html:

<!DOCTYPE html>
<html>
  <head>
    <title>Hello World!</title>
  </head>
  <body>
    <h1>Hello World!</h1>
    <script>
    nw.require('./myModule.js');
    </script>
  </body>
</html>

myModule.js:

console.log("Hello.");

To reproduce:

  1. Run nwjs-sdk-v0.13.0-beta4-linux-x64/nw .
  2. Right-click -> “Inspect background page”
  3. See output: Hello. /home/max/code/sports/test/myModule.js:1
  4. Click link to source

Result: New window opens. URL is “chrome-devtools://devtools/home/max/code/test/myModule.js”. Title is “chrome-devtools://devtools/home/max/code/test/myModule.js is not available - NW.js”. Content is: “This webpage is not available | ERR_FAILED | The webpage at chrome-devtools://devtools/home/max/code/test/myModule.js might be temporarily down or it may have moved permanently to a new web address.”

Notably, this only happens when myModule.js is included in the above fashion. If instead index.html includes it like this:

<script src="myModule.js"></script>

… then it works, except that it doesn’t seem to correctly link to the right line number, and the output must be viewed via “Inspect” rather than “Inspect background page”.

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rogerwangcommented, Apr 6, 2016

@ghostoy had a fix. It’s still under review and it’s marked as 0.14 because the underlying change is important. We want to make sure it doesn’t have any side effects. @ghostoy can we have some way to enable it only in SDK build?

btw, 0.14 would be released soon with Chromium 50 stable in 1-2 weeks.

0reactions
sk9331657commented, Dec 21, 2018

@maxbarry I am claiming this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome developer tools do not show all JavaScript files any ...
Solution: The fix for me was to copy the url address and paste it into a new tab and reopen dev tools. The...
Read more >
Some files don't show up in Sources - Google Groups
How exactly do I: open it by clicking a link in the workers list in Sources panel sidebar. check a checkbox that makes...
Read more >
This Site Can't Be Reached Error Coming While Trying To ...
When Node does not defined by extension otherwise known as and see. The app webpack 0.13 beta4 devtools / source not found when...
Read more >
Issues: Find and fix problems - Chrome Developers
To investigate an issue: In the AFFECTED RESOURCES section, click on a resource link to view the item in the appropriate context within...
Read more >
15 DevTool Secrets for JavaScript Developers
Your browser is no longer a simple visualization tool. ... In the Chrome DevTools Sources panel, open a file, right-click somewhere in the ......
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