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 was archived by the owner on Jan 13, 2024. It is now read-only.
The 5.1.0 version of pkg works fine for compiling and running our application, but the 5.2.1 (and maybe 5.2.0) changed in a way that the route handling in Express.js fails with a strange error.
::ffff:127.0.0.1 - - [24/May/2021:21:49:04 +0000] "GET / HTTP/1.1" 500 148
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type number (0)
at validateString (internal/validators.js:124:11)
at Object.resolve (path.js:1039:7)
at Object.process.pkg.path.resolve (pkg/prelude/bootstrap.js:477:25)
at View.lookup (/snapshot/helix-auth-svc-2021.1.0/node_modules/express/lib/view.js:114:32)
at new View (/snapshot/helix-auth-svc-2021.1.0/node_modules/express/lib/view.js:94:20)
at Function.render (/snapshot/helix-auth-svc-2021.1.0/node_modules/express/lib/application.js:570:12)
at ServerResponse.render (/snapshot/helix-auth-svc-2021.1.0/node_modules/express/lib/response.js:1012:7)
at /snapshot/helix-auth-svc-2021.1.0/lib/app.js:116:7
at Layer.handle_error (/snapshot/helix-auth-svc-2021.1.0/node_modules/express/lib/router/layer.js:71:5)
at trim_prefix (/snapshot/helix-auth-svc-2021.1.0/node_modules/express/lib/router/index.js:315:13)
The 5.1.0 version of pkg works fine for compiling and running our application, but the 5.2.1 (and maybe 5.2.0) changed in a way that the route handling in Express.js fails with a strange error.
The code in question is at https://github.com/perforce/helix-authentication-service although I doubt any of that is relevant.
Let me know what helpful information I can provide. I realize that what has been said so far is not much to go on.