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
We upgraded to nx 20.4.4 from 19.8.4 and now we have an issue with eslint and specifically loading the eslint configuration (and tsconfig configuration) in neovim setups.
The error we get at the top of any file is:
eslint: Parsing error: Cannot read file '/Users/mikku/code/Work/apps/frontend/tsconfig.base.json'.
Howeverthe file is not named tsconfig.base.json per project, but just tsconfig.json and the root configuration file is called tsconfig.base.json in the root of the project.
I can however "get it to work" by renaming the projects tsconfig.json to tsconfig.base.json, opening a file and then reverting the rename. However this needs to happen everytime I would re-open neovim.
Expected Behavior
I expect in neovim that my eslint-lsp and vtsls (TS lsp) to attach and work correctly without throwing an error that it can not parse the configuration file named tsconfig.base.json within a project.
GitHub Repo
No response
Steps to Reproduce
Have a project with nx version 19.8.4 installed, setup with a tsconfig.base.json and a project with a tsconfig.json
upgrade nx to 20.4.4 along side the dependencies it requires
In (neo)vim open a source buffer in the project and wait for LSP's to attach, this should then throw a diagnostic error that it can not read the configuration.
We decided to go nuclear and remove all configuration and just start again, now it works just fine again. Somehow the configuration was never correct it seems but just worked until we upgraded nx and the rest.
Closing the issue as it resolved itself by just creating a new configuration for eslint
Current Behavior
We upgraded to nx 20.4.4 from 19.8.4 and now we have an issue with eslint and specifically loading the eslint configuration (and tsconfig configuration) in neovim setups.
The error we get at the top of any file is:
eslint: Parsing error: Cannot read file '/Users/mikku/code/Work/apps/frontend/tsconfig.base.json'.
Howeverthe file is not named
tsconfig.base.json
per project, but justtsconfig.json
and the root configuration file is calledtsconfig.base.json
in the root of the project.I can however "get it to work" by renaming the projects
tsconfig.json
totsconfig.base.json
, opening a file and then reverting the rename. However this needs to happen everytime I would re-open neovim.Expected Behavior
I expect in neovim that my eslint-lsp and vtsls (TS lsp) to attach and work correctly without throwing an error that it can not parse the configuration file named
tsconfig.base.json
within a project.GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
yarn @ 4.6.0
Operating System
Additional Information
I'll be happy to provide more details if necessary, like the configurations etc.
The text was updated successfully, but these errors were encountered: