Polyonic icon indicating copy to clipboard operation
Polyonic copied to clipboard

Not allowed to load local resource:

Open sabarinathancs opened this issue 4 years ago • 6 comments

While Try to Force Reload . I was getting this error ,and getting is full blank screen

sabarinathancs avatar Jun 09 '21 16:06 sabarinathancs

@sabarinathancs Hi - what platform is this for?

paulsutherland avatar Jun 09 '21 17:06 paulsutherland

Windows

sabarinathancs avatar Jun 10 '21 03:06 sabarinathancs

@sabarinathancs

Can you give me a bit more information to go on so I can try and recreate the issue.

What platform were you targeting? Mobile, Web or Desktop (Electron)? What command were you running? npm run electron:dev npm run ionic? ... Force reload - is that the browser, code editor?

If you can outline the steps you took I can review it.

Thanks,

Paul

paulsutherland avatar Jun 11 '21 14:06 paulsutherland

yup ok, let me explain. my target paltform is windows and android, to run code i’m using npm rin electron:local. when problem is coming is after app loaded in electron i’m trying too use cmd+r after that entire application got white screen and error through in console Not allowed to load local resource:

sabarinathancs avatar Jun 12 '21 03:06 sabarinathancs

@sabarinathancs Ok thanks. I can recreate this issue. It is related to angular and routing. It tries to load a route view on force reload and it can't obviously find that in the the www directory. I will need to work on this to get it reload the original index page on reload or force reload.

I'll push an update out when I fix it.

Thanks,

Paul

paulsutherland avatar Jun 16 '21 08:06 paulsutherland

@sabarinathancs I have pushed a fix. Please try it out and let me know if it clears the issue for you.

paulsutherland avatar Jun 16 '21 09:06 paulsutherland