You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.
On some occasions, I can get errors like this one:
TypeError: C:\Dev\VersionPress\docs-site\dist\views\layout.jade:37
35| li
36| a(href="/#{language}") Home
> 37| each val in rootRoute['_routes']
38| +traverseRoutes(val)
39|
40|
Cannot read property '_routes' of undefined
at eval (eval at <anonymous> (C:\Dev\VersionPress\docs-site\node_modules\jade\lib\index.js:218:8), <anonymous>:360:24)
at eval (eval at <anonymous> (C:\Dev\VersionPress\docs-site\node_modules\jade\lib\index.js:218:8), <anonymous>:390:4)
at eval (eval at <anonymous> (C:\Dev\VersionPress\docs-site\node_modules\jade\lib\index.js:218:8), <anonymous>:586:22)
at res (C:\Dev\VersionPress\docs-site\node_modules\jade\lib\index.js:219:38)
at Object.exports.renderFile (C:\Dev\VersionPress\docs-site\node_modules\jade\lib\index.js:380:38)
at Object.exports.renderFile (C:\Dev\VersionPress\docs-site\node_modules\jade\lib\index.js:370:21)
at View.exports.__express [as engine] (C:\Dev\VersionPress\docs-site\node_modules\jade\lib\index.js:417:11)
at View.render (C:\Dev\VersionPress\docs-site\node_modules\express\lib\view.js:126:8)
at tryRender (C:\Dev\VersionPress\docs-site\node_modules\express\lib\application.js:639:10)
at EventEmitter.render (C:\Dev\VersionPress\docs-site\node_modules\express\lib\application.js:591:3)
I think this is because in server.ts, the express server is started almost immediately but the site generally isn't prepare to take HTTP requests (building the routes takes some time).
This is problematic mostly in the npm run watch scenario where Browsersync will try to reload browsers as soon as the Node server restarts.
The text was updated successfully, but these errors were encountered:
On some occasions, I can get errors like this one:
I think this is because in
server.ts
, the express server is started almost immediately but the site generally isn't prepare to take HTTP requests (building the routes takes some time).This is problematic mostly in the
npm run watch
scenario where Browsersync will try to reload browsers as soon as the Node server restarts.The text was updated successfully, but these errors were encountered: