@nx/express plugin not generating package.json
Current Behavior
Expected Behavior
package.json is also expected. Tried with version 17.0.2 and 16.10.0 of @nx/express.
GitHub Repo
No response
Steps to Reproduce
- install @nx/express@latest or @nx/[email protected]
- npx nx g @nx/express:application the above output is getting generated.
Nx Report
not sure where this is.
Failure Logs
No response
Package Manager Version
No response
Operating System
- [ ] macOS
- [ ] Linux
- [X] Windows
- [ ] Other (Please specify)
Additional Information
No response
Thanks for reporting.
As a workaround and probably the intended way moving forward is to use @nx/node
So in your scenario it would be @nx/node:app --framework=express
Tried. that too. it does not generate package.json. even if I did a npm init and created one. npm install does not generate package-lock.json and whey I try to run nx run app:serve
nx run test1-service:serve:development
node:fs:600 handleErrorFromBinding(ctx); ^
Error: ENOENT: no such file or directory, open 'package-lock.json'
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏
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.