Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D3 probelm #254

Open
malishahi opened this issue Oct 5, 2018 · 1 comment
Open

D3 probelm #254

malishahi opened this issue Oct 5, 2018 · 1 comment

Comments

@malishahi
Copy link

Please do not submit support requests or "How to" questions here. For that, go to StackOverflow.

What you were expecting:

After installing d3, and following README, I expected that I should work.

What happened instead:
There is a dependecy on d3. I don't know where this d3 is coming from?

index-trusted.js:67589 Uncaught Error: Cannot find module "d3/build/d3"
at webpackMissingModule (index-trusted.js:67589)
at Object.defineProperty.value (index-trusted.js:67589)
at webpack_require (index-trusted.js:20)
at Object._typeof (index-trusted.js:241437)
at webpack_require (index-trusted.js:20)
at Object.defineProperty.value (index-trusted.js:220998)
at webpack_require (index-trusted.js:20)
at Object. (index-trusted.js:220880)
at webpack_require (index-trusted.js:20)
at _typeof (index-trusted.js:63)

Steps to reproduce:
import * as d3 from 'd3/build/d3';

Related code:

import * as d3 from 'd3/build/d3';
import eventDrops from 'event-drops';

export default class EventTimeline extends Component {
    constructor(props) {
        super(props);
        this.eventElem = null;
    }
    componentDidMount() {
        //console.log(this.props.data, this.props.tooltipSpec);
        if (this.props.tooltipSpec !== null && this.props.data !== null) {
            this.createEventTimeline();
        }
    }
    createEventTimeline() {
        const data = this.props.data;
        const tooltipSpec = this.props.tooltipSpec;
        this.tooltipNode
            .classed('tooltip', true)
            .style('opacity', 0);
        const chart = eventDrops({
            d3,
            zoom: {
    ```

**Other information:**



**Environment**

* EventDrops version
1.3.0
* Browser:
Chrome
* Stack trace (in case of a JS error):
@jaredkirkley
Copy link

I used import * as d3 from 'd3' and that worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants