Closed elliotmendiola closed 5 years ago
Figured out the problem(s)
Typescript version 3.1.3
breaks ng g
when using nx
ng g app [appName]
fails with no message (but it does error, confirmed in console, short circuits &&
)
ng g lib [libName]
fails with a message seemingly related to parsing json (may depend on my other packages)
Also tsconfig
can cause failures
ng g lib [libName]
would fail with the message Cannot convert undefined or null to object
In order to fix this issue, make sure you have a paths
property in your tsconfig.json
compilerOptions
"paths": {},
when creating a new project with the latest versions @angular/cli@7.3.0
and @nrwl/nx@7.5.1
, running ng generate lib myLib
works as expected.
Closing this issue. If you can still repro the issue with Nx 7.8, could you reopen it with a repro?
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Expected Behavior
ng generate lib myLib
should generate a lib namedmyLib
Current Behavior
After answering the questions needed to generate a lib I get the following error:
Cannot convert undefined or null to object
Failure Information (for bugs)
Steps to Reproduce
Follow the nx example, but before generating a lib, drop an existing ionic app into the generated app
Nx Version
@nrwl/nx: 7.5.1
nx.json
Angular CLI/build kit versions
Angular.json