kitconcept / webpack-starter-angular

Webpack Starter for Angular 1.5
167 stars 58 forks source link

ERROR in Path must be a string. Received undefined #7

Closed phra closed 8 years ago

phra commented 8 years ago

hi,

when i launch from a fresh install npm start it gives me that error. see the attachment. schermata da 2016-06-27 22 37 30

phra commented 8 years ago

any updates?

tisto commented 8 years ago

@phra I can not reproduce the error. Please provide more information about your system, the steps and the error trace (plain text).

phra commented 8 years ago

@tisto just do in an debian/ubuntu machine

npm i && npm start

there is no stacktrace, only that string. screenshot from 2016-06-29 13 42 00

phra commented 8 years ago

have you tried in a debian-like environment?

tisto commented 8 years ago

@phra I work on Ubuntu. Please provide a plain-text trace and a detailed description of your environment. Otherwise I will have to close this bugreport.

phra commented 8 years ago

updating deps seems to fix that error. closing issue.

aviadhahami commented 8 years ago

Having the same issue on windows tho, updated to latest npm (v3.10.7) & node (v6.3.1) yet I still get this error. Any suggestions?

aviadhahami commented 8 years ago

@tisto following your request for @phra, here's my npm-debug.

it seems like that mess starts with

export NODE_ENV=dev && webpack

where Windows (10) returns this 'export' is not recognized as an internal or external command, operable program or batch file.

I am able to run the wepback commands from the termainl (i.e webpack, webpack -p etc) yet I'm hitting the ERROR in Path must be a string. Received undefined message everytime.

sagg629 commented 8 years ago

Same error here, Ubuntu 14.04. node -v: v6.2.2 npm -v: 3.9.5 Any updates??

phra commented 8 years ago

just use this -> https://github.com/preboot/angular-webpack

tisto commented 8 years ago

@aviadhahami @padre629 please provide a full description and text error trace and I will look into it.

sagg629 commented 8 years ago

@tisto my console say me the following:

npm run build

> webpack-starter-angular@1.0.0 build /home/sergio/public_html/webpack/webpack-starter-angular
> export NODE_ENV=dev && webpack

Hash: 96b8c0e8fa082e6b707b
Version: webpack 1.12.15
Time: 4650ms
                                 Asset      Size  Chunks             Chunk Names
  f4769f9bdb7466be65088239c12046d1.eot   20.1 kB          [emitted]  
448c34a56d699c29117adc64c43affeb.woff2     18 kB          [emitted]  
 fa2772327f55d8198301fdb8bcfc8158.woff   23.4 kB          [emitted]  
  e18bbf611f2a2e43afc071aa2f4e1512.ttf   45.4 kB          [emitted]  
  89889688147bd7575d6327160d64e760.svg    109 kB          [emitted]  
                             bundle.js   5.75 MB       0  [emitted]  main
                            index.html  52 bytes          [emitted]  
    + 80 hidden modules

ERROR in Path must be a string. Received undefined

npm run start


> webpack-starter-angular@1.0.0 start /home/sergio/public_html/webpack/webpack-starter-angular
> webpack-dev-server --inline --port 3000 --content-base dist/

 http://localhost:3000/
webpack result is served from /
content is served from /home/sergio/public_html/webpack/webpack-starter-angular/dist
Hash: a6c5562a03ddc4c9df09
Version: webpack 1.13.2
Time: 5150ms
                                 Asset      Size  Chunks             Chunk Names
  f4769f9bdb7466be65088239c12046d1.eot   20.1 kB          [emitted]  
448c34a56d699c29117adc64c43affeb.woff2     18 kB          [emitted]  
 fa2772327f55d8198301fdb8bcfc8158.woff   23.4 kB          [emitted]  
  e18bbf611f2a2e43afc071aa2f4e1512.ttf   45.4 kB          [emitted]  
  89889688147bd7575d6327160d64e760.svg    109 kB          [emitted]  
                             bundle.js   6.37 MB       0  [emitted]  main
                            index.html  52 bytes          [emitted]  
chunk    {0} bundle.js (main) 2.36 MB [rendered]
    [0] multi main 40 bytes {0} [built]
    [1] (webpack)-dev-server/client?http://localhost:3000 2.85 kB {0} [built]
    [2] (webpack)/~/url/url.js 22.3 kB {0} [built]
    [3] (webpack)/~/url/~/punycode/punycode.js 14.6 kB {0} [built]
    [4] (webpack)/buildin/module.js 251 bytes {0} [built]
    [5] (webpack)/~/querystring/index.js 127 bytes {0} [built]
    [6] (webpack)/~/querystring/decode.js 2.4 kB {0} [built]
    [7] (webpack)/~/querystring/encode.js 2.09 kB {0} [built]
    [8] (webpack)-dev-server/~/sockjs-client/lib/entry.js 244 bytes {0} [built]
    [9] (webpack)-dev-server/~/sockjs-client/lib/transport-list.js 613 bytes {0} [built]
   [10] (webpack)-dev-server/~/sockjs-client/lib/transport/websocket.js 2.71 kB {0} [built]
   [11] (webpack)/~/process/browser.js 4.51 kB {0} [built]
   [12] (webpack)-dev-server/~/sockjs-client/lib/utils/event.js 2 kB {0} [built]
   [13] (webpack)-dev-server/~/sockjs-client/lib/utils/random.js 746 bytes {0} [built]
   [14] (webpack)-dev-server/~/sockjs-client/lib/utils/browser-crypto.js 438 bytes {0} [built]
   [15] (webpack)-dev-server/~/sockjs-client/lib/utils/url.js 975 bytes {0} [built]
   [16] (webpack)-dev-server/~/url-parse/index.js 8.55 kB {0} [built]
   [17] (webpack)-dev-server/~/requires-port/index.js 753 bytes {0} [built]
   [18] (webpack)-dev-server/~/url-parse/lolcation.js 1.58 kB {0} [built]
   [19] (webpack)-dev-server/~/querystringify/index.js 1.3 kB {0} [built]
   [20] (webpack)-dev-server/~/debug/browser.js 3.76 kB {0} [built]
   [21] (webpack)-dev-server/~/debug/debug.js 4.1 kB {0} [built]
   [22] (webpack)-dev-server/~/ms/index.js 2.33 kB {0} [built]
   [23] (webpack)-dev-server/~/inherits/inherits_browser.js 672 bytes {0} [built]
   [24] (webpack)-dev-server/~/sockjs-client/lib/event/emitter.js 1.27 kB {0} [built]
   [25] (webpack)-dev-server/~/sockjs-client/lib/event/eventtarget.js 1.85 kB {0} [built]
   [26] (webpack)-dev-server/~/sockjs-client/lib/transport/browser/websocket.js 172 bytes {0} [built]
   [27] (webpack)-dev-server/~/sockjs-client/lib/transport/xhr-streaming.js 1.25 kB {0} [built]
   [28] (webpack)-dev-server/~/sockjs-client/lib/transport/lib/ajax-based.js 1.31 kB {0} [built]
   [29] (webpack)-dev-server/~/sockjs-client/lib/transport/lib/sender-receiver.js 1.15 kB {0} [built]
   [30] (webpack)-dev-server/~/sockjs-client/lib/transport/lib/buffered-sender.js 2.3 kB {0} [built]
   [31] (webpack)-dev-server/~/sockjs-client/lib/transport/lib/polling.js 1.32 kB {0} [built]
   [32] (webpack)-dev-server/~/sockjs-client/lib/transport/receiver/xhr.js 1.58 kB {0} [built]
   [33] (webpack)-dev-server/~/sockjs-client/lib/transport/sender/xhr-cors.js 343 bytes {0} [built]
   [34] (webpack)-dev-server/~/sockjs-client/lib/transport/browser/abstract-xhr.js 4.8 kB {0} [built]
   [35] (webpack)-dev-server/~/sockjs-client/lib/transport/sender/xhr-local.js 352 bytes {0} [built]
   [36] (webpack)-dev-server/~/sockjs-client/lib/utils/browser.js 560 bytes {0} [built]
   [37] (webpack)-dev-server/~/sockjs-client/lib/transport/xdr-streaming.js 984 bytes {0} [built]
   [38] (webpack)-dev-server/~/sockjs-client/lib/transport/sender/xdr.js 2.46 kB {0} [built]
   [39] (webpack)-dev-server/~/sockjs-client/lib/transport/eventsource.js 766 bytes {0} [built]
   [40] (webpack)-dev-server/~/sockjs-client/lib/transport/receiver/eventsource.js 1.58 kB {0} [built]
   [41] (webpack)-dev-server/~/sockjs-client/lib/transport/browser/eventsource.js 37 bytes {0} [built]
   [42] (webpack)-dev-server/~/sockjs-client/lib/transport/lib/iframe-wrap.js 981 bytes {0} [built]
   [43] (webpack)-dev-server/~/sockjs-client/lib/transport/iframe.js 3.83 kB {0} [built]
   [44] (webpack)-dev-server/~/json3/lib/json3.js 43.3 kB {0} [built]
   [45] (webpack)/buildin/amd-options.js 43 bytes {0} [built]
   [46] (webpack)-dev-server/~/sockjs-client/lib/version.js 26 bytes {0} [built]
   [47] (webpack)-dev-server/~/sockjs-client/lib/utils/iframe.js 5.06 kB {0} [built]
   [48] (webpack)-dev-server/~/sockjs-client/lib/utils/object.js 532 bytes {0} [built]
   [49] (webpack)-dev-server/~/sockjs-client/lib/transport/htmlfile.js 710 bytes {0} [built]
   [50] (webpack)-dev-server/~/sockjs-client/lib/transport/receiver/htmlfile.js 2.2 kB {0} [built]
   [51] (webpack)-dev-server/~/sockjs-client/lib/transport/xhr-polling.js 894 bytes {0} [built]
   [52] (webpack)-dev-server/~/sockjs-client/lib/transport/xdr-polling.js 712 bytes {0} [built]
   [53] (webpack)-dev-server/~/sockjs-client/lib/transport/jsonp-polling.js 1.02 kB {0} [built]
   [54] (webpack)-dev-server/~/sockjs-client/lib/transport/receiver/jsonp.js 5.57 kB {0} [built]
   [55] (webpack)-dev-server/~/sockjs-client/lib/transport/sender/jsonp.js 2.46 kB {0} [built]
   [56] (webpack)-dev-server/~/sockjs-client/lib/main.js 11.9 kB {0} [built]
   [57] (webpack)-dev-server/~/sockjs-client/lib/shims.js 18.2 kB {0} [built]
   [58] (webpack)-dev-server/~/sockjs-client/lib/utils/escape.js 2.31 kB {0} [built]
   [59] (webpack)-dev-server/~/sockjs-client/lib/utils/transport.js 1.35 kB {0} [built]
   [60] (webpack)-dev-server/~/sockjs-client/lib/utils/log.js 450 bytes {0} [built]
   [61] (webpack)-dev-server/~/sockjs-client/lib/event/event.js 477 bytes {0} [built]
   [62] (webpack)-dev-server/~/sockjs-client/lib/location.js 177 bytes {0} [built]
   [63] (webpack)-dev-server/~/sockjs-client/lib/event/close.js 295 bytes {0} [built]
   [64] (webpack)-dev-server/~/sockjs-client/lib/event/trans-message.js 292 bytes {0} [built]
   [65] (webpack)-dev-server/~/sockjs-client/lib/info-receiver.js 2.22 kB {0} [built]
   [66] (webpack)-dev-server/~/sockjs-client/lib/transport/sender/xhr-fake.js 456 bytes {0} [built]
   [67] (webpack)-dev-server/~/sockjs-client/lib/info-iframe.js 1.52 kB {0} [built]
   [68] (webpack)-dev-server/~/sockjs-client/lib/info-iframe-receiver.js 791 bytes {0} [built]
   [69] (webpack)-dev-server/~/sockjs-client/lib/info-ajax.js 1.03 kB {0} [built]
   [70] (webpack)-dev-server/~/sockjs-client/lib/iframe-bootstrap.js 2.9 kB {0} [built]
   [71] (webpack)-dev-server/~/sockjs-client/lib/facade.js 723 bytes {0} [built]
   [72] (webpack)-dev-server/~/strip-ansi/index.js 161 bytes {0} [built]
   [73] (webpack)-dev-server/~/ansi-regex/index.js 135 bytes {0} [built]
   [74] ./src/app.js 888 bytes {0} [built]
   [75] ./~/jquery/dist/jquery.js 258 kB {0} [built]
   [76] ./~/bootstrap/dist/css/bootstrap.min.css 903 bytes {0} [built]
   [77] ./~/css-loader!./~/bootstrap/dist/css/bootstrap.min.css 122 kB {0} [built]
   [78] ./~/css-loader/lib/css-base.js 1.51 kB {0} [built]
   [79] ./~/bootstrap/dist/fonts/glyphicons-halflings-regular.eot 82 bytes {0} [built]
   [80] ./~/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 84 bytes {0} [built]
   [81] ./~/bootstrap/dist/fonts/glyphicons-halflings-regular.woff 83 bytes {0} [built]
   [82] ./~/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf 82 bytes {0} [built]
   [83] ./~/bootstrap/dist/fonts/glyphicons-halflings-regular.svg 82 bytes {0} [built]
   [84] ./~/style-loader/addStyles.js 7.15 kB {0} [built]
   [85] ./~/angular/index.js 48 bytes {0} [built]
   [86] ./~/angular/angular.js 1.17 MB {0} [built]
   [87] ./~/angular-ui-router/release/angular-ui-router.js 170 kB {0} [built]
   [88] ./src/app.component.js 399 bytes {0} [built]
   [89] ./src/app.html 157 bytes {0} [built]
   [90] ./src/common/common.js 645 bytes {0} [built]
   [91] ./src/common/navbar/navbar.js 635 bytes {0} [built]
   [92] ./src/common/navbar/navbar.component.js 622 bytes {0} [built]
   [93] ./src/common/navbar/navbar.html 1.18 kB {0} [built]
   [94] ./src/common/navbar/navbar.controller.js 396 bytes {0} [built]
   [95] ./src/common/hero/hero.js 617 bytes {0} [built]
   [96] ./src/common/hero/hero.component.js 596 bytes {0} [built]
   [97] ./src/common/hero/hero.jade 378 bytes {0} [built]
   [98] ./~/jade/lib/runtime.js 5.67 kB {0} [built]
  [100] ./src/common/hero/hero.controller.js 386 bytes {0} [built]
  [101] ./src/common/user/user.js 467 bytes {0} [built]
  [102] ./src/common/user/user.factory.js 367 bytes {0} [built]
  [103] ./src/components/components.js 1.13 kB {0} [built]
  [104] ./src/components/home/home.js 796 bytes {0} [built]
  [105] ./src/components/home/home.component.js 543 bytes {0} [built]
  [106] ./src/components/home/home.html 305 bytes {0} [built]
  [107] ./src/components/home/home.controller.js 386 bytes {0} [built]
  [108] ./src/components/contact/contact.js 781 bytes {0} [built]
  [109] ./src/components/contact/contact.component.js 635 bytes {0} [built]
  [110] ./src/components/contact/contact.html 501 bytes {0} [built]
  [111] ./src/components/contact/contact.controller.js 404 bytes {0} [built]
  [112] ./src/components/contact/contact.address.js 846 bytes {0} [built]
  [113] ./src/components/contact/contact.address.component.js 665 bytes {0} [built]
  [114] ./src/components/contact/contact.address.jade 300 bytes {0} [built]
  [115] ./src/components/contact/contact.address.controller.js 487 bytes {0} [built]
  [116] ./src/components/contact/contact.form.js 1.23 kB {0} [built]
  [117] ./src/components/contact/contact.form.component.js 629 bytes {0} [built]
  [118] ./src/components/contact/contact.form.jade 527 bytes {0} [built]
  [119] ./src/components/contact/contact.form.controller.js 1.11 kB {0} [built]
  [120] ./~/angular-sanitize/index.js 62 bytes {0} [built]
  [121] ./~/angular-sanitize/angular-sanitize.js 25.8 kB {0} [built]
  [122] ./~/script-loader!./~/tv4/tv4.js 294 bytes {0} [built]
  [123] ./~/script-loader/addScript.js 231 bytes {0} [built]
  [124] ./~/raw-loader!./~/tv4/tv4.js 59.8 kB {0} [built]
  [125] ./~/script-loader!./~/objectpath/lib/ObjectPath.js 312 bytes {0} [built]
  [126] ./~/raw-loader!./~/objectpath/lib/ObjectPath.js 2.85 kB {0} [built]
  [127] ./~/script-loader!./~/angular-schema-form/dist/schema-form.js 323 bytes {0} [built]
  [128] ./~/raw-loader!./~/angular-schema-form/dist/schema-form.js 108 kB {0} [built]
  [129] ./~/script-loader!./~/angular-schema-form/dist/bootstrap-decorator.js 331 bytes {0} [built]
  [130] ./~/raw-loader!./~/angular-schema-form/dist/bootstrap-decorator.js 20.3 kB {0} [built]
  [131] ./src/components/github/github.js 906 bytes {0} [built]
  [132] ./src/components/github/github.component.js 567 bytes {0} [built]
  [133] ./src/components/github/github.html 470 bytes {0} [built]
  [134] ./src/components/github/github.controller.js 1.31 kB {0} [built]
  [135] ./src/components/github/github.service.js 1.65 kB {0} [built]
  [136] ./src/components/forms/forms.js 1.08 kB {0} [built]
  [137] ./src/components/forms/forms.component.js 529 bytes {0} [built]
  [138] ./src/components/forms/forms.html 398 bytes {0} [built]
  [139] ./src/components/forms/forms.controller.js 2.24 kB {0} [built]
  [140] ./src/components/forms/base.js 1.2 kB {0} [built]
  [141] ./~/tv4/tv4.js 54.3 kB {0} [built]
  [142] ./~/objectpath/index.js 60 bytes {0} [built]
  [143] ./~/objectpath/lib/ObjectPath.js 2.42 kB {0} [built]
  [144] ./~/angular-schema-form/dist/schema-form.min.js 30.5 kB {0} [built]
  [145] ./~/angular-schema-form/~/tv4/tv4.js 45.7 kB {0} [built]
  [146] ./~/script-loader!./~/angular-schema-form-bootstrap/bootstrap-decorator.js 336 bytes {0} [built]
  [147] ./~/raw-loader!./~/angular-schema-form-bootstrap/bootstrap-decorator.js 19.7 kB {0} [built]
  [148] ./src/components/new/new.js 729 bytes {0} [built]
  [149] ./src/components/new/new.component.js 505 bytes {0} [built]
  [150] ./src/components/new/new.html 148 bytes {0} [built]
  [151] ./src/components/new/new.controller.js 398 bytes {0} [built]
  [152] ./src/styles.scss 1.09 kB {0} [built]
  [153] ./~/css-loader?sourceMap!./~/sass-loader?sourceMap!./src/styles.scss 447 bytes {0} [built]
     + 1 hidden modules

ERROR in Path must be a string. Received undefined
webpack: bundle is now VALID.

Ubuntu 14.04 x64 Hope this helps.

Jnxulia commented 7 years ago

I have changed the version of node in my case

jithureddy commented 6 years ago

We can find solution here. I was getting same issue and this is fixed now. https://github.com/webpack/webpack/issues/3242

phra commented 6 years ago

just use the angular-cli for new projects..