Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

5.2.x breaks express.js route handling logic? #1192

Description

@nlfiedler

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 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions