susielu / d3-legend

A reusable d3 legend component.
http://d3-legend.susielu.com/
Apache License 2.0
727 stars 104 forks source link

syntax error in npm package #21

Closed DinoJay closed 8 years ago

DinoJay commented 8 years ago

Hey Susie,

thanks for this cool d3 legend plugin. Unfortunately, when I try to bundle the npm package with webpack. I got the following syntax error:


ERROR in ./~/d3-svg-legend/index.js Module parse failed: /home/djan/dev/client/node_modules/d3-svg-legend/index.js Line 2: Unexpected token . You may need an appropriate loader to handle this file type. var d3 = require('d3'), d3.legend = require('./no-extend')
module.exports = d3;

@ ./app/components/Legend.jsx 19:0-24


Best regards Jan

susielu commented 8 years ago

Jan,

This is not a package that uses webpack. If you download the source and want to compile it you use grunt to build it.

Thanks, Susie