docute icon indicating copy to clipboard operation
docute copied to clipboard

TypeError: r is undefined

Open oren opened this issue 7 years ago • 5 comments

When I deploy my website to github pages I don't see the content and instead there is a javascript error:

TypeError: r is undefined

Here is my website: http://oren.github.io/chinese/

and the repo: https://github.com/oren/oren.github.io/blob/b1f49cfb909c1faec745ab8c82c9a816370a2b3d/chinese/index.html

oren avatar Oct 01 '18 03:10 oren

Try 4.0.7, btw your sourcePath should be /chinese/docs/

egoist avatar Oct 02 '18 06:10 egoist

Thank you!

oren avatar Oct 02 '18 14:10 oren

now I can't see the website when I open it with python on my laptop. instead i see:

Error response

Error code 404.

Message: File not found.

Error code explanation: 404 = Nothing matches the given URI. 

oren avatar Oct 02 '18 14:10 oren

I found out what causes it but I don't have a good solution. Here is the issue:

This works on github pages but not on my laptop:

sourcePath: '/chinese/docs/',

This works on my laptop but not on github pages

sourcePath: '/docs/',

Any suggestions?

oren avatar Oct 03 '18 05:10 oren

Trying using a static server that supports history mode?

egoist avatar Jun 08 '19 09:06 egoist