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
I've refactored my typescript configuration from using a base file called tsconfig.json to tsconfig-base.json and suddenly running the build fails with the error Cannot read properties of undefined (reading 'paths')
I've tracked the error down to this code where there are two main issues:
if the file is found (it is, I do have a new main tsconfig.json) but it doesn't have compilerOptions it fails with a null exception
The file that is looking is hardcoded to be tsconfig.json or tsconfig.base.json
Expected Behavior
If the config file exits and it doesn't have a compilerOption it should default the paths to an empty array.
That base config file should not be hardcoded and it should be passed as a configuration parameter, as I was planning to have different bases for different purposes.
Current Behavior
I've refactored my typescript configuration from using a base file called
tsconfig.json
totsconfig-base.json
and suddenly running the build fails with the errorCannot read properties of undefined (reading 'paths')
I've tracked the error down to this code where there are two main issues:
tsconfig.json
) but it doesn't havecompilerOptions
it fails with a null exceptiontsconfig.json
ortsconfig.base.json
Expected Behavior
paths
to an empty array.GitHub Repo
private repo
Steps to Reproduce
Nx Report
Failure Logs
No response
Package Manager Version
npm 9.5.1
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: