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.

Problem with dependency d3

See original GitHub issue

Hello,

I would like to use your library from NPM, but when i’m cmpiling with webpack.encore (because i’m working on symfony 4 project), i have this error :

Running webpack ...
 ERROR  Failed to compile with 1 errors                                                         14:50:55
This dependency was not found:
* d3 in ./assets/js/deepskymap.js

My script deepskymap.js is like this (it’s a resume) :

import Celestial from 'd3-celestial';

export default function skymap()
{
  let config = {...};
  Celestial.add({...});
  Celestial.display(config);
}

And app.js :

import skymap from './deepskymap'
skymap();

Do i need to install/import d3 package NPM too ? Is something wrong ? Thank you 😃

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ofrohncommented, Apr 2, 2019

Ah, so that doesn’t work automatically. Oops. Updated

1reaction
ofrohncommented, Mar 31, 2019

Sorry for the late comment, I was terribly busy for the last few months. I have now exported the entire Celestial object in case it was invoked via require. I think that may be what you wanted.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Some devDependencies should be dependencies? #3 - GitHub
I noticed that d3-interpolate and d3-format are listed under devDependencies rather than dependencies in package.json, however they are hard ...
Read more >
d3.js Typescript Dependency Compilation Errors
These properties seem to be working fine, but the typescript compiler doesn't recognize them, indicating that there's something wrong with my @ ...
Read more >
d3 - npm
D3 (or D3.js) is a JavaScript library for visualizing data using web standards. D3 helps you bring data to life using SVG, Canvas...
Read more >
The awkward valley to ESM: Node.js, Victory, and D3
The big question after deciding that we'd vendor in Victory's D3 dependencies confronted us — how should we technologically accomplish this? One ...
Read more >
DependenTree, Graph Visualization Library - Square Developer
When trying to display larger dependency trees, my browser tab would frequently crash. Once, I was lucky enough to see an “out of...
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