<!-- Thank you for reporting an issue. This issue tracker is for bugs and issues found within Node.js core. If you require more general support please file an issue on our help repo. https://github.com/nodejs/help Please fill in as much of the template below as you're able. Version: output of `node -v` Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows) Subsystem: if known, please specify affected core module name If possible, please provide code that demonstrates the problem, keeping it as simple and free of external dependencies as you are able. --> * **v9.5.0**: * **Windows 10 Pro 64-bit**: * **modules**: <!-- Enter your issue details below this comment. --> I have this file structure:  - app.js `console.log( require.resolve('./hello') );` - package.json `{ "main": "test" }` other files are empty. run: `node app.js` if rely on the documentation **require** should find file underlined in the picture below:  **hello.js** but it finds this:  **test.js** It should find file in step **3.a** but it finds in step **3.b** 