WealthBar / angular-d3

AngularJS directives for declaratively using D3
http://wealthbar.github.io/angular-d3/
MIT License
156 stars 39 forks source link

issue running #40

Open j-chimienti opened 7 years ago

j-chimienti commented 7 years ago

cloned repo, ran

npm install

npm start

 http://localhost:8080/webpack-dev-server/
webpack result is served from /
content is served from /Users/joe/Documents/angular-d3
Hash: 34b80ebc88e09b465030
Version: webpack 1.15.0
Time: 3919ms
                                 Asset           Size  Chunks             Chunk Names
                          angularD3.js        1.66 MB       0  [emitted]  angularD3
  f4769f9bdb7466be65088239c12046d1.eot        20.1 kB          [emitted]  
 fa2772327f55d8198301fdb8bcfc8158.woff        23.4 kB          [emitted]  
  e18bbf611f2a2e43afc071aa2f4e1512.ttf        45.4 kB          [emitted]  
  89889688147bd7575d6327160d64e760.svg         109 kB          [emitted]  
  c61666832b100158d53116794e3e62b9.csv      552 bytes          [emitted]  
  414fa762ef1f59dc6fc6fb518300417f.csv      108 bytes          [emitted]  
448c34a56d699c29117adc64c43affeb.woff2          18 kB          [emitted]  
                                app.js        1.57 MB       1  [emitted]  app
                               app.css         148 kB       1  [emitted]  app
                      angularD3.js.map        1.94 MB       0  [emitted]  angularD3
                            app.js.map        1.84 MB       1  [emitted]  app
                           app.css.map        12.4 kB       1  [emitted]  app
                           favicon.ico  NaN undefined          [emitted]  
                            index.html       52 bytes          [emitted]  
chunk    {0} angularD3.js, angularD3.js.map (angularD3) 1.62 MB [rendered]
    [0] ./index.js 23 bytes {0} [built]
    [1] ./angularD3/index.coffee 455 bytes {0} [built]
    [2] ./~/angular/index.js 48 bytes {0} {1} [built]
    [3] ./~/angular/angular.js 1.25 MB {0} {1} [built]
    [4] ./angularD3/services/d3service.coffee 1.1 kB {0} [built]
    [5] ./~/d3/d3.js 337 kB {0} [built]
    [6] ./angularD3/services/d3locale.coffee 918 bytes {0} [built]
    [7] ./angularD3/directives/arc.coffee 2.25 kB {0} [built]
    [8] ./angularD3/directives/area.coffee 3.77 kB {0} [built]
    [9] ./angularD3/directives/axis.coffee 8.83 kB {0} [built]
   [10] ./angularD3/directives/bars.coffee 2.04 kB {0} [built]
   [11] ./angularD3/directives/chart.coffee 3.3 kB {0} [built]
   [12] ./angularD3/directives/data.coffee 506 bytes {0} [built]
   [13] ./angularD3/directives/gradient.coffee 1.33 kB {0} [built]
   [14] ./angularD3/directives/include.coffee 358 bytes {0} [built]
   [15] ./angularD3/directives/line.coffee 1.13 kB {0} [built]
   [16] ./angularD3/directives/pie.coffee 5.24 kB {0} [built]
chunk    {1} app.js, app.css, app.js.map, app.css.map (app) 1.52 MB [rendered]
    [0] ./app/index.js 167 bytes {1} [built]
    [2] ./~/angular/index.js 48 bytes {0} {1} [built]
    [3] ./~/angular/angular.js 1.25 MB {0} {1} [built]
   [17] ./~/jquery/dist/jquery.js 258 kB {1} [built]
   [18] ./app/scripts/app.coffee 593 bytes {1} [built]
   [19] ./angularD3/locale/en-US.js 577 bytes {1} [built]
   [20] ./angularD3/locale/fr-CA.js 571 bytes {1} [built]
   [21] ./angularD3/locale/zh-CN.js 492 bytes {1} [built]
   [22] ./app/scripts/main.coffee 236 bytes {1} [built]
   [23] ./app/scripts/main_controller.coffee 2.59 kB {1} [built]
   [24] ./app/data/data.csv 82 bytes {1} [built]
   [25] ./app/data/donutData.csv 82 bytes {1} [built]
   [26] ./app/scripts/main_view.html 3.35 kB {1} [built]
   [27] ./~/bootstrap/js/scrollspy.js 4.71 kB {1} [built]
   [28] ./~/bootstrap/dist/css/bootstrap.css 41 bytes {1} [built]
   [37] ./app/styles/index.scss 41 bytes {1} [built]

ERROR in Path must be a string. Received undefined
Child extract-text-webpack-plugin:
    chunk    {0} extract-text-webpack-plugin-output-filename 156 kB [rendered]
        [0] ./~/css-loader!./~/bootstrap/dist/css/bootstrap.css 154 kB {0} [built]
        [1] ./~/css-loader/lib/css-base.js 1.51 kB {0} [built]
        [2] ./~/bootstrap/dist/fonts/glyphicons-halflings-regular.eot 82 bytes {0} [built]
        [3] ./~/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 84 bytes {0} [built]
        [4] ./~/bootstrap/dist/fonts/glyphicons-halflings-regular.woff 83 bytes {0} [built]
        [5] ./~/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf 82 bytes {0} [built]
        [6] ./~/bootstrap/dist/fonts/glyphicons-halflings-regular.svg 82 bytes {0} [built]
Child extract-text-webpack-plugin:
    chunk    {0} extract-text-webpack-plugin-output-filename 9.07 kB [rendered]
        [0] ./~/css-loader?sourceMap!./~/sass-loader?sourceMap!./app/styles/index.scss 7.57 kB {0} [built]
        [1] ./~/css-loader/lib/css-base.js 1.51 kB {0} [built]
webpack: Failed to compile.
chrisnicola commented 7 years ago

I'm guessing this has to do with this project not having a npm-shrinkwrap files and npm installing whatever it feels like. Probably a new version of something broke something here. Solution is probably to switch to Yarn and figure out what version of what package to roll-back or, and more preferably, fix whatever is breaking the newer version.

nickcastro commented 6 years ago

works for me after adding to webpack config outptut:

publicPath:''

https://github.com/webpack/webpack/issues/3242#issuecomment-348003962