You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to use the revolt.js package, however I'm unable to run it in my environment due to a thrown error when resolving @solid-primitives/trigger. Not sure if it's a TypeScript stripping issue or a module resolution issue
node:internal/modules/esm/resolve:314
return new ERR_PACKAGE_PATH_NOT_EXPORTED(
^
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in C:\Users\jakem\lopez\node_modules\@solid-primitives\trigger\package.json
at exportsNotFound (node:internal/modules/esm/resolve:314:10)
at packageExportsResolve (node:internal/modules/esm/resolve:604:13)
at resolveExports (node:internal/modules/cjs/loader:653:36)
at Function._findPath (node:internal/modules/cjs/loader:742:31)
at Function._resolveFilename (node:internal/modules/cjs/loader:1380:27)
at defaultResolveImpl (node:internal/modules/cjs/loader:1050:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1055:22)
at Function._load (node:internal/modules/cjs/loader:1204:37)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:234:24) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
I am using "type": "module" in my package.json file
Node version: 23.7.0
TypeScript version: 5.8.2
@solid-primitives/trigger version: 1.2.0
npm why @solid-primitives/trigger
@solid-primitives/[email protected] dev
node_modules/@solid-primitives/trigger
@solid-primitives/trigger@"^1.0.11" from @solid-primitives/[email protected]
node_modules/@solid-primitives/set
@solid-primitives/set@"^0.4.11" from [email protected]
node_modules/revolt.js
dev revolt.js@"^7.0.5" from the root project
@solid-primitives/trigger@"^1.1.0" from @solid-primitives/[email protected]
node_modules/@solid-primitives/map
@solid-primitives/map@"^0.4.11" from [email protected]
node_modules/revolt.js
dev revolt.js@"^7.0.5" from the root project
The text was updated successfully, but these errors were encountered:
I am attempting to use the
revolt.js
package, however I'm unable to run it in my environment due to a thrown error when resolving@solid-primitives/trigger
. Not sure if it's a TypeScript stripping issue or a module resolution issueRunning:
which is only the following file:
Results in:
I do see the
exports
section in the trigger package.json, not sure where the disconnect is:https://github.com/solidjs-community/solid-primitives/blob/b31be823c12de2a5729ee2d1f4cf1bcf47e66e3d/packages/trigger/package.json#L34C1-L40C5
Environment info:
"type": "module"
in mypackage.json
fileThe text was updated successfully, but these errors were encountered: