simonihmig / ember-cli-bundle-analyzer

Analyze the size and contents of your Ember app's bundles
MIT License
99 stars 2 forks source link

ENOENT with Foundation Sites #18

Closed henrymazza closed 5 years ago

henrymazza commented 5 years ago

Analyzer gives an error with Foundation in a very non-existing path:

ENOENT: no such file or directory, open '/Users/HMz/Development/uni-fe/concat-stats-for/2-vendor.js/Users/HMz/Development/uni-fe/node_modules/foundation-sites/d

A piece of 2-vendor.js.json:

...
 "sizes": {
    "vendor/ember-cli/vendor-prefix.js": 98,
    "vendor/loader/loader.js": 8933,
    "vendor/moment/moment.js": 131757,
    "vendor/moment/locales/pt-br.js": 2007,
    "vendor/babel-polyfill/polyfill.js": 248869,
    "vendor/ember/jquery/jquery.js": 271751,
    "vendor/ember/ember.debug.js": 1799254,
    "browserify/browserify.js": 1719858,
    "/Users/HMz/Development/uni-fe/node_modules/foundation-sites/dist/js/foundation.js": 419185,
    "bower_components/jquery-maskmoney/dist/jquery.maskMoney.js": 17475,
...

Funny it finds the foundation.js once the file size, but fails when concatenating the path afterwards.

simonihmig commented 5 years ago

Hm, @henrymazza I assume the project is not a public one, so would you be able to provide a minimal reproduction repo? Like a simple ember app with foundation included, that replicates the problem you are seeing?