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.

Adding ascii as dependency to the blog isn't reflected in `nx graph`

See original GitHub issue

Documentation issue

  • Reporting a documentation bug
  • Documentation improvement

Is there a specific documentation page you are reporting?

https://nx.dev/core-tutorial/03-share-assets

Additional context or description

After following the first 3 steps of the tutorial, when I run nx graph, it fails to detect the dependence of blog on ascii, despite the documentation saying otherwise.

/packages/blog/package.json

{
  "name": "blog",
  "description": "eleventy blog",
  "version": "1.0.0",
  "dependency": {
    "ascii": "*"
  },
  "scripts": {
    "build": "eleventy --input=./src --output=../../dist/packages/blog",
    "serve": "eleventy --serve --input=./src --output=../../dist/packages/blog"
  }
}

/packages/ascii/project.json

{
  "root": "packages/ascii",
  "sourceRoot": "packages/ascii/assets",
  "projectType": "library"
}

Running nx graph yields

Screen Shot 2022-06-24 at 22 13 20

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:8
  • Comments:6

github_iconTop GitHub Comments

2reactions
gmotylcommented, Sep 16, 2022

I was able to see the cow after fixing ascii.md

pageTitle: Some ASCII Art
---

Welcome to [The Restaurant at the End of the Universe](https://hitchhikers.fandom.com/wiki/Ameglian_Major_Cow)

<pre>
{% renderFile "../ascii/assets/cow.txt" %}
</pre>

Art courtesy of [cowsay](https://www.npmjs.com/package/cowsay).

image

but dependency graph still looks like this:

image

0reactions
gmotylcommented, Sep 16, 2022

same

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using the Nx Dependency Graph in Custom Scripts | juri.dev
In this article, we're going to look into how we can leverage it in our own scripts. Nx is an open source dev...
Read more >
ASCII Visualisation of a graph of nodes in python
I want to be able to visualise the relationships between the Nodes dictated in their childLists and parentlists onto stdout (as an ASCII...
Read more >
Plugging into the Dependency Graph Construction for Nx
This post shows you how a Go project in an Nx workspace can be added to the dependency graph by extending the Nx...
Read more >
@lerna/symlink-dependencies | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
How to add markers in graph using python as shown below?
I want to design a graph like below, but, I don't know- how to add ... lw=1.2) t = ax.annotate('local max\n x =...
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