Not allowed to load local resource
See original GitHub issueI 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:
- Created 6 years ago
- Reactions:5
- Comments:9 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@cousincockle is right. Electron build is showing inconsistent behaviour with main.ts. Running
tsc main.ts
beforenpm start
solves the problem. Alternatively, editing start scripts in package.json to includetsc main.ts &&
at the beginning also works.System config -
App Config -
running
tsc
before runningnpm start
resolved the problem