<!-- 🚨 STOP 🚨 STOP 🚨 STOP 🚨 Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section! Please help us by doing the following steps before logging an issue: * Search: https://github.com/Microsoft/TypeScript/search?type=Issues * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ Please fill in the *entire* template below. --> <!-- Please try to reproduce the issue with the latest published version. It may have already been fixed. For npm: `typescript@next` This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly --> **TypeScript Version:** 4.0.2 <!-- Search terms you tried before logging this (so others can find this issue more easily) --> **Search Terms:** go to definition javascript **Code** ```js 'use strict' // javascript file. const uuid = require('uuid') ``` **Expected behavior:** When I hit Go to definition with F12 on uuid it goes to the source code.  This works fine for JavaScript because tsconfig.json does not exist. **Actual behavior:** When I hit Go to definition with F12 it does not do anything useful.  This is because a `tsconfig.json` file exists in my JavaScript project. **Playground Link:** **Related Issues:**