Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passport dependency failing when bundled with webpack #55

Open
cidbeltran opened this issue Jun 25, 2018 · 0 comments
Open

Passport dependency failing when bundled with webpack #55

cidbeltran opened this issue Jun 25, 2018 · 0 comments

Comments

@cidbeltran
Copy link

Version: 3.0.1

Running unbundled works fine. After bundling i keep getting an error:

TypeError: Path must be a string. Received undefined
at assertPath (path.js:28:11)
at Object.dirname (path.js:728:5)
at Function.pkginfo.find (C:\app.js:133417:14)
at Function.pkginfo.read (C:\app.js:133443:17)
at module.exports (C:\app.js:133392:21)
at Object. (C:\app.js:132762:25)
at Object. (C:\app.js:132782:30)
at webpack_require (C:\app.js:20:30)
at Object. (C:\app.js:132146:16)
at webpack_require (C:\app.js:20:30)

On checking the error stack trace it appears to be triggered from passport's dependency pkginfo. A similar issue has appeared with passport-azure-ad which I've reported before: AzureAD/passport-azure-ad#369

Latest versions of passport has already dropped it's usage of pkginfo so I'd recommend updating as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant