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.

gitgraph-react sample code does not work

See original GitHub issue

Describe the bug A clear and concise description of what the bug is. image

The const { Gitgraph } = require("@gitgraph/react"); line causes the react to fail to compile with the following error message:

Module not found: Can't resolve '@gitgraph/react'

To Reproduce Steps to reproduce the behavior:

Go to https://github.com/nicoespeon/gitgraph.js/tree/master/packages/gitgraph-react

Desktop (please complete the following information):

  • OS: Debian
  • Browser Vivaldi
  • Version "gitgraph-react": "^2.0.0-alpha.73bd2e56"

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
nicoespeoncommented, Mar 6, 2019

Good to know. I’m closing the issue since the gitgraph-react sample code was fixed. Everything should work now.

1reaction
FeynmanDNAcommented, Mar 6, 2019

@nicoespeon i ended up still using "gitgraph.js": "^1.15.1" in my react project, following the discussion from this thread: https://github.com/nicoespeon/gitgraph.js/issues/195

😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

@gitgraph/react examples - CodeSandbox
Learn how to use @gitgraph/react by viewing and forking @gitgraph/react example apps on CodeSandbox.
Read more >
Top 5 @gitgraph/core Code Examples - Snyk
To help you get started, we've selected a few @gitgraph/core examples, based on popular ways it is used in public projects. Secure your...
Read more >
@gitgraph/react - npm
Start using @gitgraph/react in your project by running `npm i ... There is 1 other project in the npm registry using @gitgraph/react.
Read more >
How to import correctly js library (gigraph), into react
Failed to compile ./src/App.js Line 13: 'GitGraph' is not defined no-undef Search for the keywords to learn more about each error.
Read more >
How To Use Git Integration in Visual Studio Code - DigitalOcean
This tutorial won't touch on it in-depth, but through the Source Control panel, you do have access to work with remote repositories. If...
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