-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tsserver unable to find tsconfig.json regardless of location relative to source files #32039
Comments
Worth noting that I don't even fully understand what that means, but for one reason or another that config file is simply not being used and tsserver is using an 'inferredProject'. Full log file can be provided if required. The project can be found here. |
@hbomb79 I don't see this issue on my windows machine with the code you shared. Can you please share tsserver log to see if something went wrong? Thanks. You can upload logs by following these steps:
|
Hey @sheetalkamat, thanks for offering your assistance. I'm not using VSCode or anything like that; I'm simply running This is the full log file from using I've used pastebin to link to my log file as it's size was too large to include here. |
I'm using Windows with Cygwin; I can't use
|
I just cleared out my npm as well, I now have no packages installed except |
Cant make out much from your tsserver log. May be check if tsserver process has access to the config file location. |
Sorry, @hbomb79 did you find anything? Currently experiencing this on GNU Linux and Vim + coc extensions |
TypeScript Version: 3.5.2
Search Terms: tsserver config module not found logging missing cygwin
Code
Log file from tsserver
Directory Structure
tsconfig.json:
Running on Windows 10, Cygwin.
Expected behavior:
The configuration file
tsconfig.json
would be found and identified by tsserver. When running viatsc
, the code is compiled as expected indicating thetsconfig.json
file IS being loaded.Actual behavior:
'No config files found' presented by tsserver. On a MacOS machine with a identical config, directory structure, and node packages, the config file is identified correctly.
The lack of this configuration file means that when using vim-ale to lint my Typescript projects, all modules come back as 'Unable to find module X' as the tsserver is not using the configuration file (namely,
"moduleResolution": "node"
).Playground Link: N/A
The text was updated successfully, but these errors were encountered: