Error: Package exports for '[path]\node_modules\openid-client' do not define a '.' subpath

Hello guys,

I’m integrating my Nodejs + Express app to Auth0, however when I try to start the app I’m getting the following error:

Error: Package exports for ‘[path]\node_modules\openid-client’ do not define a ‘.’ subpath
at applyExports (internal/modules/cjs/loader.js:485:15)
at resolveExports (internal/modules/cjs/loader.js:508:12)
at Function.Module._findPath (internal/modules/cjs/loader.js:577:20)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:879:27)
at Function.Module._load (internal/modules/cjs/loader.js:785:27)
at Module.require (internal/modules/cjs/loader.js:956:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. ([path]\node_modules\express-openid-connect\lib\client.js:1:28)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1103:10) {
code: ‘MODULE_NOT_FOUND’

My Node version is v13.1.0.

Any ideas?

It looks like some users have solved this by upgrading to the most recent version of node. Have you tried that?

Yes, I did that and it’s working now. I was using node version 13, now I upgrade it to v15 and the error is gone.

1 Like

Great, thanks for the update.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.