gitgraph-react sample code does not work
See original GitHub issueDescribe the bug
A clear and concise description of what the bug is.
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:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Good to know. I’m closing the issue since the gitgraph-react sample code was fixed. Everything should work now.
@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😃