Cannot use dagre-d3 in Vue
See original GitHub issueI’ve ‘npm installed’ dagre-d3 and wanted to use it in my Vue app. But after I imported it as below:
import dagreD3 from 'dagre-d3'
I got errors like below:
WARNING in ./~/dagre-d3/lib/graphlib.js
5:4-11 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
WARNING in ./~/dagre-d3/lib/dagre.js
5:4-11 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
WARNING in ./~/dagre-d3/lib/lodash.js
5:4-11 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
WARNING in ./~/dagre-d3/lib/d3.js
5:6-13 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
d3.js - Error in mounted hook: "TypeError: edge is undefined ...
I'm trying to set up very simple example with Vue2 using dagre-d3 for rendering directed graphs. Unfortunately, even with extremely simple ...
Read more >dagre-d3 - npm
A D3-based renderer for Dagre. Latest version: 0.6.4, last published: 3 years ago. Start using dagre-d3 in your project by running `npm i ......
Read more >dagre-d3-react - npm Package Health Analysis - Snyk
The npm package dagre-d3-react was scanned for known vulnerabilities and missing license, and no issues were found. Thus the package was deemed as...
Read more >Zooming in d3.js - The D3 Graph Gallery
Select a zone to zoom on it (X axis only). Double click to unzoom. A clipPath is used to avoid displaying the circle...
Read more >Automatic Vue.js single-file-components hierarchy graph ...
Use the following controls to add components ( *.vue files) to the list or use the provided default SFC files (for now, you...
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 FreeTop 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
Top GitHub Comments
i find there’s no main field in package.json, so import from ‘dagre-d3’ is import the package’s root index.js. there’s a build js in the dist, just import this one will fix it. import dagreD3 from ‘dagre-d3/dist/dagre-d3’;
wish a exmple