Incorrect import/no-unresolved error on Windows 11
After updating eslint-import-resolver-typescript version 3.9.0 to 4.3.4, my Windows machine starts to report import/no-unresolved errors for two imports. Other imports work fine. All imports work fine on Mac and Linux.
import { defineConfig, globalIgnores } from "eslint/config";
import typescriptEslint from "typescript-eslint";
Repro repo: https://github.com/Archinowsk/eslint-import-resolver-typescript-bug-reproduction
- Install
yarnand runyarn install(correct yarn version included in repo) - Run
yarn eslint - This will produce two
import/no-unresolvederrors, foreslint/configandtypescript-eslint. - The same error will appear in
eslint.config.jsandindex.tsto demonstrate it appears outside ESLint config file.
Environment:
- OS: Windows 11
- NodeJS: 22.11.0
- Yarn: 4.9.1
@Archinowsk Sorry but I don't have a Windows device, so maybe we need to collaborate here to debug.
Can you help running yarn eslint with DEBUG=eslint-import-resolver-typescript environment?
Since you're using yarn v4, so I believe "eslint": "DEBUG=eslint-import-resolver-typescript eslint ." will just do the trick.
Running DEBUG=eslint-import-resolver-typescript eslint . returns following:
$ yarn eslint
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint/config' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint/config' +1ms
eslint-import-resolver-typescript didn't find eslint/config with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +4ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint/config' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint/config' +0ms
eslint-import-resolver-typescript didn't find eslint/config with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +1ms
eslint-import-resolver-typescript using cached options for C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint/config' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint/config' +0ms
eslint-import-resolver-typescript didn't find eslint/config with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +2ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +1ms
eslint-import-resolver-typescript didn't find typescript-eslint with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +12ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint/config' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint/config' +0ms
eslint-import-resolver-typescript didn't find eslint/config with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +10ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +1ms
eslint-import-resolver-typescript didn't find typescript-eslint with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +2ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint/config' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint/config' +0ms
eslint-import-resolver-typescript didn't find eslint/config with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint/config' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint/config' +0ms
eslint-import-resolver-typescript didn't find eslint/config with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\eslint.config.js
2:45 error Unable to resolve path to module 'eslint/config' import/no-unresolved
3:30 error Unable to resolve path to module 'typescript-eslint' import/no-unresolved
C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\index.ts
1:30 error Unable to resolve path to module 'typescript-eslint' import/no-unresolved
2:30 error Unable to resolve path to module 'eslint/config' import/no-unresolved
✖ 4 problems (4 errors, 0 warnings)
I tried to repro the error with Github Actions Windows runner (Windows Server 2022) but it seems to be fine: https://github.com/Archinowsk/eslint-import-resolver-typescript-bug-reproduction/actions/workflows/lint-windows-2022.yml
How about use https://github.com/un-ts/eslint-plugin-import-x instead?
I made a new branch for eslint-plugin-import-x: https://github.com/Archinowsk/eslint-import-resolver-typescript-bug-reproduction/tree/eslint-plugin-import-x.
No luck, same no-unresolved errors and now couple more. Same as before, works on Mac.
$ yarn eslint
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@eslint/js' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint__js' +1ms
eslint-import-resolver-typescript didn't find @eslint/js with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint/config' +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint/config' +0ms
eslint-import-resolver-typescript didn't find eslint/config with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint-plugin-import-x' +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint-plugin-import-x' +0ms
eslint-import-resolver-typescript didn't find eslint-plugin-import-x with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint-import-resolver-typescript' +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint-import-resolver-typescript' +0ms
eslint-import-resolver-typescript didn't find eslint-import-resolver-typescript with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@eslint/js' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint__js' +0ms
eslint-import-resolver-typescript didn't find @eslint/js with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@eslint/js' +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint__js' +0ms
eslint-import-resolver-typescript didn't find @eslint/js with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@eslint/js' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint__js' +0ms
eslint-import-resolver-typescript didn't find @eslint/js with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@eslint/js' +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint__js' +0ms
eslint-import-resolver-typescript didn't find @eslint/js with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint/config' +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint/config' +0ms
eslint-import-resolver-typescript didn't find eslint/config with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint/config' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint/config' +0ms
eslint-import-resolver-typescript didn't find eslint/config with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +1ms
eslint-import-resolver-typescript didn't find typescript-eslint with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint-plugin-import-x' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint-plugin-import-x' +0ms
eslint-import-resolver-typescript didn't find eslint-plugin-import-x with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint-plugin-import-x' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint-plugin-import-x' +0ms
eslint-import-resolver-typescript didn't find eslint-plugin-import-x with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint-plugin-import-x' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint-plugin-import-x' +0ms
eslint-import-resolver-typescript didn't find eslint-plugin-import-x with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint-plugin-import-x' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint-plugin-import-x' +0ms
eslint-import-resolver-typescript didn't find eslint-plugin-import-x with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint-import-resolver-typescript' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint-import-resolver-typescript' +1ms
eslint-import-resolver-typescript didn't find eslint-import-resolver-typescript with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint-import-resolver-typescript' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint-import-resolver-typescript' +0ms
eslint-import-resolver-typescript didn't find eslint-import-resolver-typescript with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +12ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint/config' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint/config' +0ms
eslint-import-resolver-typescript didn't find eslint/config with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +1ms
eslint-import-resolver-typescript matched path: C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\workingImport.ts +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +10ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +1ms
eslint-import-resolver-typescript didn't find typescript-eslint with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint/config' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint/config' +0ms
eslint-import-resolver-typescript didn't find eslint/config with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint/config' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint/config' +0ms
eslint-import-resolver-typescript didn't find eslint/config with C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\tsconfig.json +0ms
C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\eslint.config.js
1:20 error Unable to resolve path to module '@eslint/js' import-x/no-unresolved
2:45 error Unable to resolve path to module 'eslint/config' import-x/no-unresolved
3:30 error Unable to resolve path to module 'typescript-eslint' import-x/no-unresolved
4:33 error Unable to resolve path to module 'eslint-plugin-import-x' import-x/no-unresolved
5:48 error Unable to resolve path to module 'eslint-import-resolver-typescript' import-x/no-unresolved
C:\Users\arttu\sources\eslint-import-resolver-typescript-bug-reproduction\index.ts
1:30 error Unable to resolve path to module 'typescript-eslint' import-x/no-unresolved
2:30 error Unable to resolve path to module 'eslint/config' import-x/no-unresolved
✖ 7 problems (7 errors, 0 warnings)
If you can write Rust then contributing to https://github.com/unrs/unrs-resolver would be appreciated, I don't have a Windows device, and as you mentioned, it cannot be reproduced on GitHub Actions.
I tried to run unrs-resolver tests on my Windows machine and 27 tests failed. Not sure if I have something wrong in my environment or if this has something to do with the bug.
Output:
$ just test
cargo test --all-features
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.18s
Running unittests src\lib.rs (target\debug\deps\unrs_resolver-52244c5861411606.exe)
running 107 tests
test error::test_coverage ... ok
test file_system::metadata ... ok
test error::test_into_io_error ... ok
test specifier::tests::empty ... ok
test specifier::tests::enhanced_resolve_windows_like ... ok
test options::test::display ... ok
test path::normalize ... ok
test specifier::tests::debug ... ok
test specifier::tests::relative ... ok
test specifier::tests::enhanced_resolve_edge_cases ... ok
test path::is_invalid_exports_target ... ok
test specifier::tests::hash ... ok
test specifier::tests::absolute ... ok
test specifier::tests::query_fragment ... ok
test options::test::enforce_extension ... ok
test specifier::tests::module ... ok
test tests::alias::infinite_recursion ... ok
test tests::builtins::builtins ... ok
test tests::builtins::builtins_off ... ok
test tests::alias::all_alias_values_are_not_found ... ok
test tests::builtins::fail ... ok
test tests::alias::system_path ... ok
test tests::browser_field::crypto_js ... ok
test tests::alias::alias_try_fragment_as_path ... ok
test tests::browser_field::with_query ... ok
test tests::alias::alias_is_full_path ... ok
test tests::browser_field::shared_resolvers ... ok
test tests::builtins::imports ... ok
test tests::browser_field::ignore ... ok
test tests::browser_field::recurse_fail ... ok
test tests::alias::alias_fragment ... ok
test tests::extensions::default_enforce_extension ... ok
test tests::extension_alias::not_apply_to_extension_nor_main_files ... ok
test tests::extension_alias::extension_alias ... ok
test tests::extensions::without_leading_dot - should panic ... ok
test tests::extensions::respect_enforce_extension ... ok
test tests::extensions::multi_dot_extension ... ok
test tests::imports_field::shared_resolvers ... ok
test tests::incorrect_description_file::incorrect_description_file_1 ... ok
test tests::exports_field::exports_not_browser_field2 ... FAILED
test tests::incorrect_description_file::incorrect_description_file_2 ... ok
test tests::alias::absolute_path ... FAILED
test tests::incorrect_description_file::incorrect_description_file_3 ... ok
test tests::exports_field::extension_without_fully_specified ... FAILED
test tests::browser_field::recursive ... FAILED
test tests::browser_field::broken ... FAILED
test tests::exports_field::field_name_path ... FAILED
test tests::incorrect_description_file::no_description_file ... ok
test tests::exports_field::shared_resolvers ... FAILED
test tests::exports_field::test_simple ... FAILED
test tests::exports_field::extension_alias_throw_error ... FAILED
test tests::browser_field::replace_file ... FAILED
test tests::exports_field::exports_not_browser_field1 ... FAILED
test tests::exports_field::extension_alias_1_2 ... FAILED
test tests::imports_field::test_simple ... ok
test tests::exports_field::extension_alias_3 ... FAILED
test tests::extensions::extensions ... FAILED
test tests::resolution::test ... ok
test tests::pnp::resolve_pnp_pkg_should_failed_while_disable_pnp_mode ... ok
test tests::imports_field::test_cases ... ok
test tests::missing::alias_and_extensions ... ok
test tests::resolve::resolve_normalized_on_windows ... ok
test tests::resolve::resolve_to_context ... ok
test tests::missing::test ... FAILED
test tests::main_field::test_fallback ... FAILED
test tests::main_field::test ... FAILED
test tests::roots::resolve_to_context ... ok
test tests::exports_field::test_cases ... ok
test tests::roots::roots_fall_through ... ok
test tests::roots::should_resolve_slash ... ok
test tests::resolve::issue238_resolve ... FAILED
test tests::resolve::resolve ... FAILED
test tests::simple::simple ... ok
test tests::symlink::test ... FAILED
test tests::resolve::prefer_relative ... FAILED
test tests::symlink::test_unsupported_targets ... FAILED
test tests::tsconfig_paths::broken ... ok
test tests::resolve::resolve_hash_as_module ... ok
test tests::roots::prefer_absolute ... ok
test tests::threaded_environment ... ok
test tests::tsconfig_paths::test_base_url ... ok
test tests::restrictions::restriction1 ... FAILED
test tests::tsconfig_paths::json_with_comments ... ok
test tests::tsconfig_paths::test_merge_tsconfig ... ok
test tests::tsconfig_paths::test_no_merge_tsconfig ... ok
test tests::tsconfig_paths::test_paths ... ok
test tests::tsconfig_paths::test_paths_and_base_url ... ok
test tests::roots::roots ... ok
test tests::scoped_packages::scoped_packages ... FAILED
test tests::simple::dashed_name ... FAILED
test tests::simple::resolve_abs_main ... FAILED
test tests::tsconfig_paths::tsconfig_fallthrough ... ok
test tests::tsconfig_paths::test_parent_base_url ... ok
test tests::tsconfig_paths::with_bom ... ok
test tests::tsconfig_paths::test_paths_nested_base ... ok
test tests::pnp::resolve_in_pnp_linked_folder ... ok
test tests::windows::test_get_dos_device_path ... ok
test windows::test_try_strip_windows_prefix ... ok
test tests::tsconfig_project_references::self_reference ... ok
test tests::pnp::resolve_package_deep_link ... ok
test tests::tsconfig_paths::tsconfig_resolve ... FAILED
test tests::tsconfig_paths::test_template_variable ... ok
test tests::tsconfig_project_references::auto ... ok
test tests::pnp::resolve_pnp_nested_package_json ... ok
test tests::tsconfig_project_references::manual ... ok
test tests::tsconfig_project_references::disabled ... ok
test tests::pnp::pnp_basic ... ok
failures:
---- tests::exports_field::exports_not_browser_field2 stdout ----
thread 'tests::exports_field::exports_not_browser_field2' panicked at src\tests\exports_field.rs:120:5:
assertion `left == right` failed
left: Err(NotFound("exports-field/dist/main.js"))
right: Ok("C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\exports-field2\\node_modules/exports-field/lib/browser.js")
---- tests::alias::absolute_path stdout ----
thread 'tests::alias::absolute_path' panicked at src\tests\alias.rs:182:5:
assertion `left == right` failed
left: Err(NotFound("foo/index"))
right: Err(Ignored("C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\foo"))
---- tests::exports_field::extension_without_fully_specified stdout ----
thread 'tests::exports_field::extension_without_fully_specified' panicked at src\tests\exports_field.rs:136:5:
assertion `left == right` failed
left: Err(NotFound("exports-field/dist/main"))
right: Ok("C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\exports-field2\\node_modules/exports-field/lib/lib2/main.js")
---- tests::browser_field::recursive stdout ----
thread 'tests::browser_field::recursive' panicked at src\tests\browser_field.rs:174:9:
assertion `left == right` failed: should handle recursive file 1 "C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\browser-module" recursive-file/a
left: Err(NotFound("recursive-file/a"))
right: Err(Recursion)
---- tests::browser_field::broken stdout ----
thread 'tests::browser_field::broken' panicked at src\tests\browser_field.rs:134:9:
assertion `left == right` failed: "C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures" browser-module-broken
left: Err(NotFound("browser-module-broken"))
right: Ok("C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\node_modules/browser-module-broken/main.js")
---- tests::exports_field::field_name_path stdout ----
thread 'tests::exports_field::field_name_path' panicked at src\tests\exports_field.rs:159:9:
assertion `left == right` failed
left: Err(NotFound("exports-field"))
right: Ok("C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\exports-field3\\node_modules/exports-field/main.js")
---- tests::exports_field::shared_resolvers stdout ----
thread 'tests::exports_field::shared_resolvers' panicked at src\tests\exports_field.rs:202:5:
assertion `left == right` failed
left: Err(NotFound("exports-field"))
right: Ok("C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\exports-field3\\node_modules/exports-field/main.js")
---- tests::exports_field::test_simple stdout ----
thread 'tests::exports_field::test_simple' panicked at src\tests\exports_field.rs:60:9:
assertion `left == right` failed: resolve root using exports field, not a main field "C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\exports-field" exports-field
left: Err(NotFound("exports-field"))
right: Ok("C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\exports-field\\node_modules/exports-field/x.js")
---- tests::exports_field::extension_alias_throw_error stdout ----
thread 'tests::exports_field::extension_alias_throw_error' panicked at src\tests\exports_field.rs:286:9:
assertion `left == right` failed: should throw error with the `extensionAlias` option "C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\exports-field-and-extension-alias" pkg/string.js
left: Err(NotFound("pkg/string.js"))
right: Err(ExtensionAlias("string.js", "string.ts", "C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\exports-field-and-extension-alias\\node_modules/pkg/dist"))
---- tests::browser_field::replace_file stdout ----
thread 'tests::browser_field::replace_file' panicked at src\tests\browser_field.rs:90:9:
assertion `left == right` failed: should replace a module with a module 1 "C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\browser-module" module-b
left: Err(NotFound("module-c"))
right: Ok("C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\browser-module\\node_modules/module-c.js")
---- tests::exports_field::exports_not_browser_field1 stdout ----
thread 'tests::exports_field::exports_not_browser_field1' panicked at src\tests\exports_field.rs:104:5:
assertion `left == right` failed
left: Err(NotFound("exports-field/dist/main.js"))
right: Ok("C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\exports-field\\node_modules/exports-field/lib/lib2/main.js")
---- tests::exports_field::extension_alias_1_2 stdout ----
thread 'tests::exports_field::extension_alias_1_2' panicked at src\tests\exports_field.rs:233:9:
assertion `left == right` failed: should resolve with the `extensionAlias` option "C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\exports-field-and-extension-alias" @org/pkg/string.js
left: Err(NotFound("@org/pkg/string.js"))
right: Ok("C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\exports-field-and-extension-alias\\node_modules/@org/pkg/dist/string.js")
---- tests::exports_field::extension_alias_3 stdout ----
thread 'tests::exports_field::extension_alias_3' panicked at src\tests\exports_field.rs:259:9:
assertion `left == right` failed: should resolve with the `extensionAlias` option #3 "C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\exports-field-and-extension-alias" pkg/string.js
left: Err(NotFound("pkg/string.js"))
right: Ok("C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\exports-field-and-extension-alias\\node_modules/pkg/dist/string.js")
---- tests::extensions::extensions stdout ----
thread 'tests::extensions::extensions' panicked at src\tests\extensions.rs:29:9:
assertion `left == right` failed: should resolve trailing slash directory before single file module/ node_modules/module/index.ts
left: Err(NotFound("module/"))
right: Ok("C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\extensions\\node_modules/module/index.ts")
---- tests::missing::test stdout ----
thread 'tests::missing::test' panicked at src\tests\missing.rs:63:13:
missing-module: "C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\node_modules/missing-module" not in {"C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\package.json", "C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\package.json"}
---- tests::main_field::test_fallback stdout ----
thread 'tests::main_field::test_fallback' panicked at src\tests\main_field.rs:37:5:
assertion `left == right` failed
left: Err(NotFound("main_field_fallback"))
right: Ok("C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\invalid\\node_modules/main_field_fallback/exist.js")
---- tests::main_field::test stdout ----
thread 'tests::main_field::test' panicked at src\tests\main_field.rs:15:5:
assertion `left == right` failed
left: Err(NotFound("pck2"))
right: Ok("C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\restrictions\\node_modules/pck2/index.css")
---- tests::resolve::issue238_resolve stdout ----
thread 'tests::resolve::issue238_resolve' panicked at src\tests\resolve.rs:71:5:
assertion `left == right` failed
left: Err(NotFound("config/myObjectFile"))
right: Ok("C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\issue-238\\src/common/config/myObjectFile.js")
---- tests::resolve::resolve stdout ----
thread 'tests::resolve::resolve' panicked at src\tests\resolve.rs:57:9:
assertion `left == right` failed: file in module with .js "C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures" m1/a.js
left: Err(NotFound("m1/a.js"))
right: Ok("C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\node_modules/m1/a.js")
---- tests::symlink::test stdout ----
thread 'tests::symlink::test' panicked at src\tests\symlink.rs:159:9:
assertion `left == right` failed: "with a symlink to a file"
left: Err(NotFound("./index.js"))
right: Ok("C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\lib/index.js")
---- tests::resolve::prefer_relative stdout ----
thread 'tests::resolve::prefer_relative' panicked at src\tests\resolve.rs:89:9:
assertion `left == right` failed: should correctly resolve with preferRelative 2 m1/a.js
left: Err(NotFound("m1/a.js"))
right: Ok("C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\node_modules/m1/a.js")
---- tests::symlink::test_unsupported_targets stdout ----
thread 'tests::symlink::test_unsupported_targets' panicked at src\tests\symlink.rs:183:73:
called `Result::unwrap()` on an `Err` value: NotFound("./device_path_lib")
---- tests::restrictions::restriction1 stdout ----
thread 'tests::restrictions::restriction1' panicked at src\tests\restrictions.rs:24:5:
assertion `left == right` failed
left: Err(NotFound("pck2"))
right: Err(Restriction("C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\c.js", "C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\restrictions"))
---- tests::scoped_packages::scoped_packages stdout ----
thread 'tests::scoped_packages::scoped_packages' panicked at src\tests\scoped_packages.rs:23:9:
assertion `left == right` failed: main field should work "C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\scoped" @scope/pack1
left: Err(NotFound("@scope/pack1"))
right: Ok("C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\scoped\\./node_modules/@scope/pack1/main.js")
---- tests::simple::dashed_name stdout ----
thread 'tests::simple::dashed_name' panicked at src\tests\simple.rs:56:9:
assertion `left == right` failed: "C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures" dash
left: Err(NotFound("dash"))
right: Ok("C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\enhanced_resolve\\test\\fixtures\\node_modules/dash/index.js")
---- tests::simple::resolve_abs_main stdout ----
thread 'tests::simple::resolve_abs_main' panicked at src\tests\simple.rs:13:48:
called `Result::unwrap()` on an `Err` value: NotFound("a")
---- tests::tsconfig_paths::tsconfig_resolve stdout ----
thread 'tests::tsconfig_paths::tsconfig_resolve' panicked at src\tests\tsconfig_paths.rs:43:9:
assertion `left == right` failed: foo "C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\tsconfig\\cases/index"
left: Err(TsconfigNotFound("tsconfig-index"))
right: Ok("C:\\Users\\arttu\\sources\\unrs-resolver\\fixtures\\tsconfig\\node_modules/tsconfig-index/foo.js")
failures:
tests::alias::absolute_path
tests::browser_field::broken
tests::browser_field::recursive
tests::browser_field::replace_file
tests::exports_field::exports_not_browser_field1
tests::exports_field::exports_not_browser_field2
tests::exports_field::extension_alias_1_2
tests::exports_field::extension_alias_3
tests::exports_field::extension_alias_throw_error
tests::exports_field::extension_without_fully_specified
tests::exports_field::field_name_path
tests::exports_field::shared_resolvers
tests::exports_field::test_simple
tests::extensions::extensions
tests::main_field::test
tests::main_field::test_fallback
tests::missing::test
tests::resolve::issue238_resolve
tests::resolve::prefer_relative
tests::resolve::resolve
tests::restrictions::restriction1
tests::scoped_packages::scoped_packages
tests::simple::dashed_name
tests::simple::resolve_abs_main
tests::symlink::test
tests::symlink::test_unsupported_targets
tests::tsconfig_paths::tsconfig_resolve
test result: FAILED. 80 passed; 27 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s
That's interesting because @chenxinyanc was also using Windows, maybe you're using a special Windows environment, you can try to help to fix the failing test cases?
Hi, I am having the same problem, however I am using macOS.
My desktop on NixOS and our GitHub Actions runners do not exhibit this issue.
I have pinned down the problem to a change made between 3.9.0 and 3.9.1
I think the swap to using null instead of undefined here:
...as errors regarding values being undefined often come up in my debug run too.
I am able to get the problem to reproduce with the repo @Archinowsk has created; here is my output:
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +1ms
eslint-import-resolver-typescript didn't find typescript-eslint with /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint/config' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint/config' +0ms
eslint-import-resolver-typescript didn't find eslint/config with /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +4ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +1ms
eslint-import-resolver-typescript didn't find typescript-eslint with /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint/config' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint/config' +0ms
eslint-import-resolver-typescript didn't find eslint/config with /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint/config' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint/config' +0ms
eslint-import-resolver-typescript didn't find eslint/config with /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +180ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint/config' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint/config' +0ms
eslint-import-resolver-typescript didn't find eslint/config with /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +1ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint/config' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint/config' +0ms
eslint-import-resolver-typescript didn't find eslint/config with /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'eslint/config' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/eslint/config' +0ms
eslint-import-resolver-typescript didn't find eslint/config with /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +1ms
eslint-import-resolver-typescript didn't find typescript-eslint with /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript using cached options for /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module 'typescript-eslint' +0ms
eslint-import-resolver-typescript unrs-resolver error: Cannot find module '@types/typescript-eslint' +0ms
eslint-import-resolver-typescript didn't find typescript-eslint with /Users/zen/eslint-import-resolver-typescript-bug-reproduction/tsconfig.json +0ms
/Users/zen/eslint-import-resolver-typescript-bug-reproduction/eslint.config.js
2:45 error Unable to resolve path to module 'eslint/config' import/no-unresolved
3:30 error Unable to resolve path to module 'typescript-eslint' import/no-unresolved
/Users/zen/eslint-import-resolver-typescript-bug-reproduction/index.ts
1:30 error Unable to resolve path to module 'typescript-eslint' import/no-unresolved
2:30 error Unable to resolve path to module 'eslint/config' import/no-unresolved
✖ 4 problems (4 errors, 0 warnings)
Please provide a GitHub repo for reproduction instead.
Please provide a GitHub repo for reproduction instead.
The GitHub repo provided by the original poster here works just fine, and demonstrates the issue.
This is likely the same bug, it's just not specific to Windows as the original poster had thought.
I have the following environment
OS: macOS Sequoia 15.5 NodeJS: 22.14.0 Yarn: 4.9.1
You can find my output for the repo linked above here (my previous reply).
@ZenIsBestWolf Would you like to raise a PR to change undefined related checks?