question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@nrwl/nest build generates no package.json despite using the "generatePackageJson" option

See original GitHub issue

Current Behavior

When running the shipped build script, it doesn’t include the required dependencies. It only lists tslib in there, and thus the app crashes when trying to run it outside of my local node_modules context.

Steps to Reproduce

Generating a Nest app using the @nrwl/nest library. I tried with some changes to project.json and a completely untouched default generated app, both produce the problem.

Environment

Windows 10.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Zeilarcommented, Oct 14, 2022

Glad that I wasn’t going insane! I suppose this won’t be an issue in the future where I would use the newer version instead by default. Still very strange issue.

0reactions
jhonny9550commented, Oct 12, 2022

I also named my NestJS app api and I had the same problem with NX version 14.8.2, but updated to 14.8.4 using nx migrate latest and that fixed it 🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Generate package.json on nx build / deployment
I've tryed to use "generate-package-json-webpack-plugin" to generate the package.json, but it only detect half the dependencies. I've also tried ...
Read more >
Nx/community - nrwl - Gitter
Hello, is there any way to generate package.json per app? ... When to use [nx g @nrwl/nest:application] and [ng g @nrwl/nest:lib]? what are...
Read more >
package.json - npm Docs
Description. This document is all you need to know about what's required in your package.json file. It must be actual JSON, not just...
Read more >
package.json | pnpm
For instance, the following package.json in a workspace will create a ... If all projects in the monorepo use the same version of...
Read more >
@nrwl/node:webpack | Nx
@nrwl/node:webpack. Node application build target options for Build Facade. Options can be configured in project.json when defining the executor, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found