I have encountered some odd behaviour porting a Markdown previewer written with Angular2 to GitHub Pages.
Everything works fine locally, and occasionally works via gh-pages.
When there is a problem, Chome dev console reports:
Error: Error: XHR error (404 Not Found) loading http://jacksonbates.me/node_modules/marked/lib/marked.js(…)
So I have gone back into the system.config.js file that maps the marked library to the target file path and added
./ to it, and that worked…once
Then I ran it again and got the same error message.
Then I went back in and changed the same path to have
../ in front of it instead, and then that worked once…then I got the same message again.
Basically, I can keep going back and making a tiny change to the system.config.js file and it will work once.
Any ideas about a more persistent fix?