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.

Not allowed to load local resource

See original GitHub issue

I follow the instructions and I run npm start after installing. I get an error on the JS console:

Not allowed to load local resource: file:///Users/[path]/angular-electron/dist/index.html

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ashecretcommented, Jan 24, 2018

@cousincockle is right. Electron build is showing inconsistent behaviour with main.ts. Running tsc main.ts before npm start solves the problem. Alternatively, editing start scripts in package.json to include tsc main.ts && at the beginning also works.

System config -

Node - 9.4.0
NPM - 5.6.0
Typescript - 2.6.2

App Config -

"electron": "1.7.11",
 "electron-builder": "19.45.4",
"typescript": "2.6.2"
1reaction
cousincocklecommented, Jan 17, 2018

running tsc before running npm start resolved the problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome: Not allowed to load local resource - Stack Overflow
Google Chrome does not allow to load local resources because of the security. Chrome need http url. Internet Explorer and ...
Read more >
5 Ways To Fix “Not Allowed To Load Local Resource” Error
How to Fix Not Allowed to Load Local Resource Error · Try Disabling the Chrome Security Settings · Change DNS Settings · Clear...
Read more >
3 Ways to Bypass Not Allowed to Load Local Resource Error ...
How do I fix not allowed to load local resource? · 1. Change to Public DNS · 2. Install the Web Server for...
Read more >
How to Fix Not Allowed to Load Local Resource in ... - MiniTool
How to Fix Not Allowed to Load Local Resource? · Fix 1: Change DNS Settings · Fix 2: Clear DNS Host Cache ·...
Read more >
What error "Not allowed to load local resource" is about?
I have error while running JavaScript as follows: Not allowed to load local resource: parboiled2/parboiled-core/src/main/scala/org/parboiled2/package.scala.
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