-
fix(js): handle tsconfig file with no compilerOptions (#25966)
发布于
2024-05-23 19:43:35 +00:00 Handles adding a root
tsconfig.base.jsonwhen there is a root
tsconfig.jsonwith nocompilerOptionsproperty.Prerequisites:
Have a repository has a roottsconfig.jsonwith nocompilerOptions
property and there is no roottsconfig.base.json.Steps to reproduce:
- Generate a js library (
nx g @nx/js:lib my-lib)
Expected results:
Library is created.Actual results:
There is an error.NX Cannot read properties of undefined (reading 'rootDir')This PR fixes the error.
下载附件
- Generate a js library (