Exception: No "exports" main defined in ... @solid-primitives/trigger/package.json #39

Closed
opened 2026-02-16 12:26:51 -05:00 by yindo · 5 comments
Owner

Originally created by @akama-aka on GitHub (Mar 25, 2025).

Hello,

I just wanted to update my Revolt Bot to the latest version, so I ran 'npm update'. After I did this, however, I keep getting this error message:

node:internal/modules/cjs/loader:641
      throw e;
      ^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /.../node_modules/@solid-primitives/trigger/package.json
    at exportsNotFound (node:internal/modules/esm/resolve:322:10)
    at packageExportsResolve (node:internal/modules/esm/resolve:613:13)
    at resolveExports (node:internal/modules/cjs/loader:634:36)
    at Module._findPath (node:internal/modules/cjs/loader:724:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27)
    at Module._load (node:internal/modules/cjs/loader:1051:27)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (/run/media/akama-aka/Development/Projects/com.github/solutions-akami/siwft_bot-shop_revolt/node_modules/@solid-primitives/map/dist/index.cjs:4:15)
    at Module._compile (node:internal/modules/cjs/loader:1469:14) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

Node.js v20.18.3

Heres the Source of the Project: https://github.com/akami-solutions/ecozend_bot-shop_revolt

Originally created by @akama-aka on GitHub (Mar 25, 2025). Hello, I just wanted to update my Revolt Bot to the latest version, so I ran 'npm update'. After I did this, however, I keep getting this error message: ```log node:internal/modules/cjs/loader:641 throw e; ^ Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /.../node_modules/@solid-primitives/trigger/package.json at exportsNotFound (node:internal/modules/esm/resolve:322:10) at packageExportsResolve (node:internal/modules/esm/resolve:613:13) at resolveExports (node:internal/modules/cjs/loader:634:36) at Module._findPath (node:internal/modules/cjs/loader:724:31) at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27) at Module._load (node:internal/modules/cjs/loader:1051:27) at Module.require (node:internal/modules/cjs/loader:1311:19) at require (node:internal/modules/helpers:179:18) at Object.<anonymous> (/run/media/akama-aka/Development/Projects/com.github/solutions-akami/siwft_bot-shop_revolt/node_modules/@solid-primitives/map/dist/index.cjs:4:15) at Module._compile (node:internal/modules/cjs/loader:1469:14) { code: 'ERR_PACKAGE_PATH_NOT_EXPORTED' } Node.js v20.18.3 ``` Heres the Source of the Project: https://github.com/akami-solutions/ecozend_bot-shop_revolt
yindo closed this issue 2026-02-16 12:26:51 -05:00
Author
Owner

@sharkaccino commented on GitHub (Mar 25, 2025):

since #112 was merged, the minimum supported version of node has been increased to node 22.
nvm this is probably unrelated since that hasn't been published yet.

@sharkaccino commented on GitHub (Mar 25, 2025): ~~since #112 was merged, the minimum supported version of node has been increased to node 22.~~ nvm this is probably unrelated since that hasn't been published yet.
Author
Owner

@insertish commented on GitHub (Mar 25, 2025):

Adding a note here too, 7.0.5 seemingly broke randomly, not sure why yet.
(as I found out the other day before I started merging PRs in)

Issue persists on 7.1.0-rc.2 which includes PR #112.

@insertish commented on GitHub (Mar 25, 2025): Adding a note here too, 7.0.5 seemingly broke randomly, not sure why yet. (as I found out the other day before I started merging PRs in) Issue persists on 7.1.0-rc.2 which includes PR #112.
Author
Owner

@akama-aka commented on GitHub (Mar 25, 2025):

Adding a note here too, 7.0.5 seemingly broke randomly, not sure why yet.
(as I found out the other day before I started merging PRs in)

Issue persists on 7.1.0-rc.2 which includes PR #112.

Okay thank you. Will then check out 7.0.4 asap

@akama-aka commented on GitHub (Mar 25, 2025): > Adding a note here too, 7.0.5 seemingly broke randomly, not sure why yet. > (as I found out the other day before I started merging PRs in) > > Issue persists on 7.1.0-rc.2 which includes PR #112. Okay thank you. Will then check out 7.0.4 asap
Author
Owner

@fb-sean commented on GitHub (Apr 5, 2025):

Seeing this error too, a fix would be nice ^^

@fb-sean commented on GitHub (Apr 5, 2025): Seeing this error too, a fix would be nice ^^
Author
Owner

@akama-aka commented on GitHub (May 25, 2025):

I guess it might be because of outdated NodeJS Version. As stated in the README 22.x is recommended and due to the reason I've had 20.x installed I might have got this error.

Tl;DR: Check if you really have NodeJS 22.x installed.

@akama-aka commented on GitHub (May 25, 2025): I guess it might be because of outdated NodeJS Version. As stated in the README 22.x is recommended and due to the reason I've had 20.x installed I might have got this error. Tl;DR: Check if you really have NodeJS 22.x installed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/javascript-client-sdk#39