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

**URL:** <https://community.auth0.com/t/error-package-exports-for-path-node-modules-openid-client-do-not-define-a-subpath/60486>\
**Category:** Get Help\
**Tags:** express, openidconnect, auth0\
**Created:** [April 2, 2021, 3:03pm UTC](https://community.auth0.com/t/error-package-exports-for-path-node-modules-openid-client-do-not-define-a-subpath/60486 "2021-04-02T15:03:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kwebbv](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kwebbv/32/15603_2.png) [@kwebbv](https://community.auth0.com/u/kwebbv)\
**Post date:** [April 2, 2021, 3:03pm UTC](https://community.auth0.com/t/error-package-exports-for-path-node-modules-openid-client-do-not-define-a-subpath/60486/1 "2021-04-02T15:03:45Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 5, 2021, 7:18pm UTC](https://community.auth0.com/t/error-package-exports-for-path-node-modules-openid-client-do-not-define-a-subpath/60486/3 "2021-04-05T19:18:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kwebbv](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kwebbv/32/15603_2.png) [@kwebbv](https://community.auth0.com/u/kwebbv)\
**Post date:** [April 6, 2021, 9:23pm UTC](https://community.auth0.com/t/error-package-exports-for-path-node-modules-openid-client-do-not-define-a-subpath/60486/4 "2021-04-06T21:23:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 6, 2021, 9:25pm UTC](https://community.auth0.com/t/error-package-exports-for-path-node-modules-openid-client-do-not-define-a-subpath/60486/5 "2021-04-06T21:25:12Z")

</div>

Great, thanks for the update.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 21, 2021, 9:25pm UTC](https://community.auth0.com/t/error-package-exports-for-path-node-modules-openid-client-do-not-define-a-subpath/60486/6 "2021-04-21T21:25:19Z")

</div>

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