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
> var f = await import('ix/asynciterable/operators/index');
Uncaught:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/p/project/node_modules/ix/asynciterable/operators/ignoreelements' imported from /Users/p/project/node_modules/ix/asynciterable/operators/index.mjs
at finalizeResolution (node:internal/modules/esm/resolve:260:11)
at moduleResolve (node:internal/modules/esm/resolve:921:10)
at defaultResolve (node:internal/modules/esm/resolve:1120:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:557:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:526:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38) {
code: 'ERR_MODULE_NOT_FOUND',
url: 'file:///Users/p/project/node_modules/ix/asynciterable/operators/ignoreelements'
}
> var f = await import('ix/asynciterable/index');
Uncaught:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/p/project/node_modules/ix/asynciterable/includes' imported from /Users/p/project/node_modules/ix/asynciterable/index.mjs
at finalizeResolution (node:internal/modules/esm/resolve:260:11)
at moduleResolve (node:internal/modules/esm/resolve:921:10)
at defaultResolve (node:internal/modules/esm/resolve:1120:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:557:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:526:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38) {
code: 'ERR_MODULE_NOT_FOUND',
url: 'file:///Users/p/project/node_modules/ix/asynciterable/includes'
}
Expected behavior:
index modules resolve without issues
Actual behavior:
import fails
Additional information:
There's a workaround: do not use index files, but import specific modules separately.
Thanks for the report, looks like I missed adding .js to some of the imports in the source. I'll have a PR up shortly, along with a fix for the UMD bundles that should let me test importing all the subpath exports in CI.
IxJS version: 6.0.0
NodeJS 22.4
Code to reproduce:
Expected behavior:
index
modules resolve without issuesActual behavior:
import
failsAdditional information:
There's a workaround: do not use
index
files, but import specific modules separately.For example:
instead of:
Side note: Since we're already here, there's a typo in
throwError
module nameThere's one
r
too many inerror
😉 It's working just fine though, and I realize that would probably be a breaking change now, so 🤷🏻The text was updated successfully, but these errors were encountered: