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.

Command `nx run` works, `nx r` doesn't

See original GitHub issue

Current Behavior

When I run nx run web:serve, everything works perfectly - but when I run nx r web:serve I get this:

paul@pop-os:~/projects/remark$ nx r web:serve
info  - Loaded env from apps/web/.env.local
Segmentation fault (core dumped)

Expected Behavior

nx r to work the same as nx run.

Failure Logs

Failing Command:

paul@pop-os:~/projects/remark$ nx r web:serve
info  - Loaded env from apps/web/.env.local
Segmentation fault (core dumped)

Working Command:

paul@pop-os:~/projects/remark$ nx run web:serve

> nx run web:serve
info  - Loaded env from apps/web/.env.local
info  - automatically enabled Fast Refresh for 1 custom loader
event - compiled client and server successfully in 2s (703 modules)
[ ready ] on http://localhost:3000

Environment

  Node : 16.9.1
  OS   : linux x64
  yarn : 1.22.15

  nx : 13.4.2
  @nrwl/angular : undefined
  @nrwl/cli : 13.4.2
  @nrwl/cypress : 13.4.3
  @nrwl/devkit : 13.4.2
  @nrwl/eslint-plugin-nx : 13.4.2
  @nrwl/express : 13.4.2
  @nrwl/jest : 13.4.2
  @nrwl/linter : 13.4.2
  @nrwl/nest : undefined
  @nrwl/next : 13.4.3
  @nrwl/node : 13.4.2
  @nrwl/nx-cloud : undefined
  @nrwl/react : 13.4.3
  @nrwl/react-native : undefined
  @nrwl/schematics : undefined
  @nrwl/tao : 13.4.2
  @nrwl/web : 13.4.3
  @nrwl/workspace : 13.4.2
  @nrwl/storybook : 13.4.3
  @nrwl/gatsby : undefined
  typescript : 4.5.4
  rxjs : 6.6.7
  ---------------------------------------
  Community plugins:

(node:19430) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/paul/projects/remark/node_modules/tslib/package.json.
Update this package.json to use a subpath pattern like "./*".
(Use `node --trace-deprecation ...` to show where the warning was created)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kanika7commented, Apr 5, 2022

No, I don’t think its related to @nrwl/next only. I upgraded NX and storybook as well and I’m starting to get Segmentation fault node "$basedir/node_modules/nx/bin/nx.js" "$@" when I try to build storybook

1reaction
jaysoocommented, Jan 19, 2022

@poeck Not yet, it’s on my list.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'nx' is not recognized as the name of a cmdlet - Stack Overflow
When I run the above command, then I get the following message: The term 'nx' is not recognized as the name of a...
Read more >
Setup a Monorepo with PNPM workspaces and speed it up ...
We will learn how to run commands with PNPM, how to run them in parallel and finally we're going to add Nx for...
Read more >
What's your biggest gripes with NRWL NX? : r/Angular2 - Reddit
Yes, that is factually correct, but 1) it's a fkin car, it cannot work without wheels, so it doesn't make sense for this...
Read more >
Nx/community - nrwl - Gitter
Also for some reason all nx commands are trying to find a file that has been ... more time spent telling me to...
Read more >
Understand the Ping and Traceroute Commands - Cisco
The ping command is a very common method used to troubleshoot ... Since no routing protocols run on Router1, it does not know...
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