Closed NullVoxPopuli closed 5 years ago
Cc @simonihmig
I just tried this out with a fresh app w/ ember-cli#master and ember canary, and that was working fine afaict.
Also your bundle.html seems to look fine, so what exactly is the problem you see?
maybe it just requires re-rolling yarn.lock ?
@simonihmig that's a really old bundle.html.
With the current version of my app, I can't complete analysis. Though, it may be related to this issue: https://github.com/ef4/ember-auto-import/issues/105
here is my most recent log;
I did:
rm -rf node_modules dist tmp concat-stats-for yarn.lock
yarn analyze
=================================================================================
ENV Summary:
TIME: Fri Aug 17 2018 15:58:27 GMT-0400 (EDT)
TITLE: ember
ARGV:
- /home/me/.nvm/versions/node/v8.11.3/bin/node
- /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin/ember
- build
- --environment
- production
EXEC_PATH: /home/me/.nvm/versions/node/v8.11.3/bin/node
TMPDIR: /tmp
SHELL: /bin/bash
PATH:
- /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin
- /home/me/.config/yarn/link/node_modules/.bin
- /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin
- /home/me/.config/yarn/link/node_modules/.bin
- /home/me/.nvm/versions/node/v8.11.3/libexec/lib/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/lib/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/bin/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/bin
- /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin
- /home/me/.config/yarn/link/node_modules/.bin
- /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin
- /home/me/.config/yarn/link/node_modules/.bin
- /home/me/.nvm/versions/node/v8.11.3/libexec/lib/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/lib/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/bin/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/bin
- /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin
- /home/me/.config/yarn/link/node_modules/.bin
- /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin
- /home/me/.config/yarn/link/node_modules/.bin
- /home/me/.nvm/versions/node/v8.11.3/libexec/lib/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/lib/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/bin/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/bin
- /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin
- /home/me/.config/yarn/link/node_modules/.bin
- /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin
- /home/me/.config/yarn/link/node_modules/.bin
- /home/me/.nvm/versions/node/v8.11.3/libexec/lib/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/lib/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/bin/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/bin
- /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin
- /home/me/.config/yarn/link/node_modules/.bin
- /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin
- /home/me/.config/yarn/link/node_modules/.bin
- /home/me/.yarn/bin
- /home/me/.nvm/versions/node/v8.11.3/libexec/lib/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/lib/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/bin/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/bin
- /home/me/.pythons/Python-3.6.3/bin
- /home/me/.cargo/bin
- /usr/local/heroku/bin
- /home/me/node_modules/.bin
- /home/me/apps/phantomjs/bin
- /home/me/scripts/system-utils
- /home/me/scripts/git
- /home/me/scripts/rails
- /home/me/scripts
- /home/me/.nvm/versions/node/v8.11.3/bin
- /home/me/.local/bin
- /usr/local/sbin
- /usr/local/bin
- /usr/sbin
- /usr/bin
- /sbin
- /bin
- /usr/games
- /usr/local/games
- /snap/bin
- /home/me/.dotnet/tools
- /home/me/.dotnet/tools
- /home/me/.fzf/bin
PLATFORM: linux x64
FREEMEM: 177700864
TOTALMEM: 16446943232
UPTIME: 27116
LOADAVG: 3.14697265625,1.72509765625,2.07470703125
CPUS:
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3900
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3900
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3906
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3900
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3900
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3899
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3900
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3900
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3899
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3899
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3900
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3900
ENDIANNESS: LE
VERSIONS:
- ares: 1.10.1-DEV
- cldr: 32.0
- http_parser: 2.8.0
- icu: 60.1
- modules: 57
- napi: 3
- nghttp2: 1.32.0
- node: 8.11.3
- openssl: 1.0.2o
- tz: 2017c
- unicode: 10.0
- uv: 1.19.1
- v8: 6.2.414.54
- zlib: 1.2.11
ERROR Summary:
- broccoliBuilderErrorStack: TypeError: Cannot read property 'length' of undefined
at concat.reduce (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/lib/strategies/simple.js:125:41)
at Array.reduce (<anonymous>)
at SimpleConcat.fileSizes (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/lib/strategies/simple.js:124:7)
at Concat._doPatchBasedBuild (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/concat.js:152:35)
at Concat.build (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/concat.js:104:19)
at resolve (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli/lib/wrappers/transform-node.js:29:35)
at new Promise (<anonymous>)
at TransformNodeWrapper.build (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli/lib/wrappers/transform-node.js:21:12)
at Promise.resolve.then.then.then (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli/lib/builder.js:111:28)
at <anonymous>
- codeFrame: Cannot read property 'length' of undefined
- errorMessage: Cannot read property 'length' of undefined
at SimpleConcatConcat (Concat: Vendor Styles/assets/vendor.css)
-~- created here: -~-
at new Plugin (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-plugin/index.js:7:31)
at new Concat (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/concat.js:34:5)
at module.exports (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/index.js:28:10)
at DefaultPackager.packageStyles (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/broccoli/default-packager.js:607:27)
at EmberApp._legacyPackage (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/broccoli/ember-app.js:1710:44)
at EmberApp.toTree (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/broccoli/ember-app.js:1761:66)
at module.exports (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/ember-cli-build.js:171:9)
at Builder.setupBroccoliBuilder (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/models/builder.js:76:19)
at new Builder (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/models/builder.js:33:10)
at BuildTask.run (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/tasks/build.js:15:19)
-~- (end) -~-
- errorType: Build Error
- location:
- column: [undefined]
- file: [undefined]
- line: [undefined]
- treeDir: [undefined]
- message: Cannot read property 'length' of undefined
at SimpleConcatConcat (Concat: Vendor Styles/assets/vendor.css)
-~- created here: -~-
at new Plugin (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-plugin/index.js:7:31)
at new Concat (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/concat.js:34:5)
at module.exports (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/index.js:28:10)
at DefaultPackager.packageStyles (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/broccoli/default-packager.js:607:27)
at EmberApp._legacyPackage (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/broccoli/ember-app.js:1710:44)
at EmberApp.toTree (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/broccoli/ember-app.js:1761:66)
at module.exports (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/ember-cli-build.js:171:9)
at Builder.setupBroccoliBuilder (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/models/builder.js:76:19)
at new Builder (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/models/builder.js:33:10)
at BuildTask.run (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/tasks/build.js:15:19)
-~- (end) -~-
- name: BuildError
- nodeAnnotation: Concat: Vendor Styles/assets/vendor.css
- nodeName: SimpleConcatConcat
- originalErrorMessage: Cannot read property 'length' of undefined
- stack: TypeError: Cannot read property 'length' of undefined
at concat.reduce (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/lib/strategies/simple.js:125:41)
at Array.reduce (<anonymous>)
at SimpleConcat.fileSizes (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/lib/strategies/simple.js:124:7)
at Concat._doPatchBasedBuild (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/concat.js:152:35)
at Concat.build (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/concat.js:104:19)
at resolve (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli/lib/wrappers/transform-node.js:29:35)
at new Promise (<anonymous>)
at TransformNodeWrapper.build (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli/lib/wrappers/transform-node.js:21:12)
at Promise.resolve.then.then.then (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli/lib/builder.js:111:28)
at <anonymous>
ok, so, with the latest ember-auto-import, I get this now:
Build Error (SimpleConcatConcat)
Cannot read property 'length' of undefined
Stack Trace and Error Report: /tmp/error.dump.60a8b4f3c9d20c68198b35ffc015a112.log
that tmp file:
=================================================================================
ENV Summary:
TIME: Mon Sep 10 2018 11:33:02 GMT-0400 (EDT)
TITLE: ember
ARGV:
- /home/me/.nvm/versions/node/v8.11.3/bin/node
- /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin/ember
- build
- --environment
- production
EXEC_PATH: /home/me/.nvm/versions/node/v8.11.3/bin/node
TMPDIR: /tmp
SHELL: /bin/bash
PATH:
- /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin
- /home/me/.config/yarn/link/node_modules/.bin
- /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin
- /home/me/.config/yarn/link/node_modules/.bin
- /home/me/.nvm/versions/node/v8.11.3/libexec/lib/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/lib/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/bin/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/bin
- /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin
- /home/me/.config/yarn/link/node_modules/.bin
- /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin
- /home/me/.config/yarn/link/node_modules/.bin
- /home/me/.nvm/versions/node/v8.11.3/libexec/lib/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/lib/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/bin/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/bin
- /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin
- /home/me/.config/yarn/link/node_modules/.bin
- /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin
- /home/me/.config/yarn/link/node_modules/.bin
- /home/me/.nvm/versions/node/v8.11.3/libexec/lib/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/lib/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/bin/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/bin
- /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin
- /home/me/.config/yarn/link/node_modules/.bin
- /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin
- /home/me/.config/yarn/link/node_modules/.bin
- /home/me/.nvm/versions/node/v8.11.3/libexec/lib/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/lib/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/bin/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/bin
- /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin
- /home/me/.config/yarn/link/node_modules/.bin
- /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin
- /home/me/.config/yarn/link/node_modules/.bin
- /home/me/.yarn/bin
- /home/me/.nvm/versions/node/v8.11.3/libexec/lib/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/lib/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/bin/node_modules/npm/bin/node-gyp-bin
- /home/me/.nvm/versions/node/v8.11.3/bin
- /home/me/.pythons/Python-3.6.3/bin
- /home/me/.cargo/bin
- /usr/local/heroku/bin
- /home/me/node_modules/.bin
- /home/me/apps/phantomjs/bin
- /home/me/scripts/system-utils
- /home/me/scripts/git
- /home/me/scripts/rails
- /home/me/scripts
- /home/me/.nvm/versions/node/v8.11.3/bin
- /home/me/.local/bin
- /usr/local/sbin
- /usr/local/bin
- /usr/sbin
- /usr/bin
- /sbin
- /bin
- /usr/games
- /usr/local/games
- /snap/bin
- /home/me/.dotnet/tools
- /home/me/.dotnet/tools
- /home/me/.fzf/bin
PLATFORM: linux x64
FREEMEM: 166469632
TOTALMEM: 16446939136
UPTIME: 11609
LOADAVG: 2.12548828125,1.6376953125,1.37939453125
CPUS:
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3899
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3900
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3900
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3900
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3900
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3900
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3900
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3900
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3900
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3900
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3900
- Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz - 3899
ENDIANNESS: LE
VERSIONS:
- ares: 1.10.1-DEV
- cldr: 32.0
- http_parser: 2.8.0
- icu: 60.1
- modules: 57
- napi: 3
- nghttp2: 1.32.0
- node: 8.11.3
- openssl: 1.0.2o
- tz: 2017c
- unicode: 10.0
- uv: 1.19.1
- v8: 6.2.414.54
- zlib: 1.2.11
ERROR Summary:
- broccoliBuilderErrorStack: TypeError: Cannot read property 'length' of undefined
at concat.reduce (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/lib/strategies/simple.js:125:41)
at Array.reduce (<anonymous>)
at SimpleConcat.fileSizes (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/lib/strategies/simple.js:124:7)
at Concat._doPatchBasedBuild (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/concat.js:152:35)
at Concat.build (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/concat.js:104:19)
at resolve (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli/lib/wrappers/transform-node.js:29:35)
at new Promise (<anonymous>)
at TransformNodeWrapper.build (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli/lib/wrappers/transform-node.js:21:12)
at Promise.resolve.then.then.then (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli/lib/builder.js:111:28)
at <anonymous>
- codeFrame: Cannot read property 'length' of undefined
- errorMessage: Cannot read property 'length' of undefined
at SimpleConcatConcat (Concat: Vendor Styles/assets/vendor.css)
-~- created here: -~-
at new Plugin (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-plugin/index.js:7:31)
at new Concat (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/concat.js:29:5)
at module.exports (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/index.js:28:10)
at DefaultPackager.packageStyles (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/broccoli/default-packager.js:607:27)
at EmberApp._legacyPackage (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/broccoli/ember-app.js:1710:44)
at EmberApp.toTree (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/broccoli/ember-app.js:1761:66)
at module.exports (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/ember-cli-build.js:164:9)
at Builder.setupBroccoliBuilder (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/models/builder.js:76:19)
at new Builder (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/models/builder.js:33:10)
at BuildTask.run (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/tasks/build.js:15:19)
-~- (end) -~-
- errorType: Build Error
- location:
- column: [undefined]
- file: [undefined]
- line: [undefined]
- treeDir: [undefined]
- message: Cannot read property 'length' of undefined
at SimpleConcatConcat (Concat: Vendor Styles/assets/vendor.css)
-~- created here: -~-
at new Plugin (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-plugin/index.js:7:31)
at new Concat (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/concat.js:29:5)
at module.exports (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/index.js:28:10)
at DefaultPackager.packageStyles (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/broccoli/default-packager.js:607:27)
at EmberApp._legacyPackage (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/broccoli/ember-app.js:1710:44)
at EmberApp.toTree (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/broccoli/ember-app.js:1761:66)
at module.exports (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/ember-cli-build.js:164:9)
at Builder.setupBroccoliBuilder (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/models/builder.js:76:19)
at new Builder (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/models/builder.js:33:10)
at BuildTask.run (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/ember-cli/lib/tasks/build.js:15:19)
-~- (end) -~-
- name: BuildError
- nodeAnnotation: Concat: Vendor Styles/assets/vendor.css
- nodeName: SimpleConcatConcat
- originalErrorMessage: Cannot read property 'length' of undefined
- stack: TypeError: Cannot read property 'length' of undefined
at concat.reduce (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/lib/strategies/simple.js:125:41)
at Array.reduce (<anonymous>)
at SimpleConcat.fileSizes (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/lib/strategies/simple.js:124:7)
at Concat._doPatchBasedBuild (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/concat.js:152:35)
at Concat.build (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli-concat/concat.js:104:19)
at resolve (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli/lib/wrappers/transform-node.js:29:35)
at new Promise (<anonymous>)
at TransformNodeWrapper.build (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli/lib/wrappers/transform-node.js:21:12)
at Promise.resolve.then.then.then (/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/broccoli/lib/builder.js:111:28)
at <anonymous>
=================================================================================
/cc @ef4
$ yarn why ember-auto-import
yarn why v1.7.0
[1/4] Why do we have the module "ember-auto-import"...?
[2/4] Initialising dependency graph...
[3/4] Finding dependency...
[4/4] Calculating file sizes...
=> Found "ember-auto-import@1.2.13"
info Reasons this module exists
- "ember-intl" depends on it
- Hoisted from "ember-intl#ember-auto-import"
info Disk size without dependencies: "1.09MB"
info Disk size with unique dependencies: "16.36MB"
info Disk size with transitive dependencies: "65.54MB"
info Number of shared dependencies: 189
Done in 1.06s.
$ yarn outdated
yarn outdated v1.7.0
info Color legend :
"<red>" : Major Update backward-incompatible updates
"<yellow>" : Minor Update backward-compatible features
"<green>" : Patch Update backward-compatible bug fixes
Package Current Wanted Latest Package Type URL
ember-cli 3.4.0-beta.3 exotic exotic devDependencies github:ember-cli/ember-cli#a5ab5cb8ba45f1e4b3a31ce2ef3533d3bb3a19cb
ember-cli-babel 6.17.0 6.17.0 7.1.0 devDependencies https://github.com/babel/ember-cli-babel#readme
ember-data 3.6.0-canary exotic exotic devDependencies github:emberjs/data#1cac25efecd1ebd30adad8a09e06ef8f7aac07e1
ember-source 3.6.0-canary exotic exotic devDependencies https://s3.amazonaws.com/builds.emberjs.com/canary/shas/a01204bc423636875696b4acd22c3ac2d707b6b8.tgz
libsodium 0.7.3 exotic exotic dependencies github:jedisct1/libsodium.js#b0ceac55216150e18eb82f7ae13346ba10e5483d
libsodium 0.7.3 exotic exotic dependencies github:jedisct1/libsodium.js#b0ceac55216150e18eb82f7ae13346ba10e5483d
qr-scanner 0.4.0 exotic exotic dependencies github:nimiq/qr-scanner
Done in 2.12s.
I've upgraded some stuff since my initial report of this issue, but it seems the error changed a bit?
Not sure if still ember-auto-import related, @ef4, thoughts?
looks like I have the latest ember-auto-import:
$ yarn info ember-auto-import
yarn info v1.7.0
{ name: 'ember-auto-import',
'dist-tags':
{ latest: '1.2.13',
alpha: '1.0.0-alpha.0' },
I have found the issue
in my ember-cli-build.js if I comment out:
// this file was removed in an update
app.import('node_modules/bulma-toast/dist/bulma-toast.min.css')
I can successfully proceed.
as I was playing with things, I noticed that
minifyJS: { enabled: false }
must be specified, or I get a
Build Error (UglifyWriter)
Invalid assignment
Currently, I have a successful build but not a successful analyze.
Built project successfully. Stored in "dist/".
File sizes:
- dist/assets/auto-import-fastboot-d41d8cd98f00b204e9800998ecf8427e.js: 0 B
- dist/assets/emberclear-07eb888950b0c8dd52813245e9a380ce.css: 165.11 KB (24.17 KB gzipped)
- dist/assets/emberclear-24b22768d7cbeaa1cf874e29111da5f5.js: 236.56 KB (42.66 KB gzipped)
- dist/assets/emberclear-fastboot-26d08641ae0fa9f7d8ae458eefd089db.js: 120 KB (24.88 KB gzipped)
- dist/assets/vendor-1a918e5c99d51bdd93d63707116d5d00.js: 1.59 MB (482.85 KB gzipped)
- dist/assets/vendor-ed87a33a38ef4b79b0cce82bb50b1094.css: 9.86 KB (2.13 KB gzipped)
- dist/libraries/qr-scanner/qr-scanner-worker.min.js: 33.04 KB (11.49 KB gzipped)
- dist/sw.js: 7.49 KB (2.49 KB gzipped)
$ yarn broccoli-concat-analyser ./concat-stats-for
$ /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin/broccoli-concat-analyser ./concat-stats-for
⠹ processing...{ Error: ENOENT: no such file or directory, open '/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/concat-stats-for/2-emberclear-fastboot.js/emberclear/initializers/ajax.js'
I think this makes sense, because I don't use ajax.
also, looking at the concat-stats-for-output, there are no folders?!
now it tried a different file
$ yarn broccoli-concat-analyser ./concat-stats-for
$ /home/me/Development/NullVoxPopuli/emberclear/packages/frontend/node_modules/.bin/broccoli-concat-analyser ./concat-stats-for
⠙ processing...{ Error: ENOENT: no such file or directory, open '/home/me/Development/NullVoxPopuli/emberclear/packages/frontend/concat-stats-for/3-emberclear.js/vendor/ember-cli/app-prefix.js'
at Object.fs.openSync (fs.js:646:18)
at Object.fs.readFileSync (fs.js:551:33)
so, what's going on? the structure of concat-stats-for
looks totally different from what the errors expect it to be?
I have a reproduction! :D https://github.com/NullVoxPopuli/reproduction-of-broccoli-concat-analyser-not-working
I have a reproduction! :D
Thanks! I'll have a look!
Ok, so I did find something, and managed to fix it, so at the end there was some reasonable analyzer output. It seems there are a few issues mentioned here (or at least two), I can't say anything about the one seemingly related to ember-auto-import. But I did find the cause for the missing folders you reported here.
This was caused by https://github.com/broccolijs/broccoli-debug/pull/15, which was just merged and released yesterday. So basically a coincidence that you uncovered this just now, but again not related to the other issues reported before.
When pinning broccoli-debug
to the previously released version 0.6.4, the stats output is ok. I also have a fix for broccoli-concat
prepared, that should fix the issue for the latest release. Will submit a PR soon...
You're the best!
Also the auto-import issue might have been me misdirecting myself, but I'll continue to assess as I am able.
Here's the fix: https://github.com/broccolijs/broccoli-concat/pull/138
I would like to close this issue here, as I think the other mentioned problems should be unrelated to this repo. Basically when the build already fails, it could be something related to broccoli-concat, ember-auto-import or whatever, but not the analyzer which doesn't affect the build at all.
Sounds good. I'll give the fix a go
I'm seeing something similar too - specifically these errors about "length". Now, I'm unable to build, and I'm not sure how to trace the issue or if it's related:
=================================================================================
ENV Summary:
TIME: Wed Oct 24 2018 23:01:24 GMT-0400 (EDT)
TITLE: ember
ARGV:
- /Users/mgardner/.nvm/versions/node/v8.11.3/bin/node
- /usr/local/bin/ember
- build
- --environment=production
EXEC_PATH: /Users/mgardner/.nvm/versions/node/v8.11.3/bin/node
TMPDIR: /var/folders/yl/f4_3rc_92pn_z8zv3hdsg8800000gr/T
SHELL: /bin/bash
PATH:
- /Library/Frameworks/Python.framework/Versions/3.6/bin
- /usr/local/opt/gdal2/bin
- /Users/mgardner/.nvm/versions/node/v8.11.3/bin
- /Users/mgardner/.rvm/gems/ruby-2.4.1/bin
- /Users/mgardner/.rvm/gems/ruby-2.4.1@global/bin
- /Users/mgardner/.rvm/rubies/ruby-2.4.1/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /usr/local/go/bin
- /Users/mgardner/.rvm/bin
- /Users/mgardner/.rvm/bin
- node_modules/.bin
PLATFORM: darwin x64
FREEMEM: 1323757568
TOTALMEM: 17179869184
UPTIME: 6165494
LOADAVG: 4.7216796875,6.2763671875,6.10546875
CPUS:
- Intel(R) Core(TM) i5-6287U CPU @ 3.10GHz - 3100
- Intel(R) Core(TM) i5-6287U CPU @ 3.10GHz - 3100
- Intel(R) Core(TM) i5-6287U CPU @ 3.10GHz - 3100
- Intel(R) Core(TM) i5-6287U CPU @ 3.10GHz - 3100
ENDIANNESS: LE
VERSIONS:
- ares: 1.10.1-DEV
- cldr: 32.0
- http_parser: 2.8.0
- icu: 60.1
- modules: 57
- napi: 3
- nghttp2: 1.32.0
- node: 8.11.3
- openssl: 1.0.2o
- tz: 2017c
- unicode: 10.0
- uv: 1.19.1
- v8: 6.2.414.54
- zlib: 1.2.11
ERROR Summary:
- broccoliBuilderErrorStack: TypeError: Cannot read property '_walk' of null
at AST_Dot.<anonymous> (/Users/mgardner/labs-zola/node_modules/terser/dist/bundle.js:899:33)
at TreeWalker._visit (/Users/mgardner/labs-zola/node_modules/terser/dist/bundle.js:1229:42)
at AST_Dot._walk (/Users/mgardner/labs-zola/node_modules/terser/dist/bundle.js:898:28)
at AST_VarDef.<anonymous> (/Users/mgardner/labs-zola/node_modules/terser/dist/bundle.js:854:44)
at TreeWalker._visit (/Users/mgardner/labs-zola/node_modules/terser/dist/bundle.js:1229:42)
at AST_VarDef._walk (/Users/mgardner/labs-zola/node_modules/terser/dist/bundle.js:852:28)
at AST_Var.<anonymous> (/Users/mgardner/labs-zola/node_modules/terser/dist/bundle.js:782:88)
at TreeWalker._visit (/Users/mgardner/labs-zola/node_modules/terser/dist/bundle.js:1229:42)
at AST_Var._walk (/Users/mgardner/labs-zola/node_modules/terser/dist/bundle.js:780:28)
at walk_body (/Users/mgardner/labs-zola/node_modules/terser/dist/bundle.js:379:122)
- codeFrame: Cannot read property '_walk' of null
- errorMessage: Cannot read property '_walk' of null
at UglifyWriter
-~- created here: -~-
at UglifyWriter.Plugin (/Users/mgardner/labs-zola/node_modules/broccoli-plugin/index.js:7:31)
at new UglifyWriter (/Users/mgardner/labs-zola/node_modules/broccoli-uglify-sourcemap/index.js:38:10)
at UglifyWriter (/Users/mgardner/labs-zola/node_modules/broccoli-uglify-sourcemap/index.js:33:12)
at Class.postprocessTree (/Users/mgardner/labs-zola/node_modules/ember-cli-uglify/index.js:54:50)
at projectOrAddon.addons.reduce (/Users/mgardner/labs-zola/node_modules/ember-cli/lib/utilities/addon-process-tree.js:6:25)
at Array.reduce (<anonymous>)
at addonProcessTree (/Users/mgardner/labs-zola/node_modules/ember-cli/lib/utilities/addon-process-tree.js:4:32)
at EmberApp.addonPostprocessTree (/Users/mgardner/labs-zola/node_modules/ember-cli/lib/broccoli/ember-app.js:842:12)
at EmberApp.host.addonPostprocessTree (/Users/mgardner/labs-zola/node_modules/ember-auto-import/js/auto-import.js:94:20)
at EmberApp.toTree (/Users/mgardner/labs-zola/node_modules/ember-cli/lib/broccoli/ember-app.js:1765:17)
-~- (end) -~-
- errorType: Build Error
- location:
- column: [undefined]
- file: [undefined]
- line: [undefined]
- treeDir: [undefined]
- message: Cannot read property '_walk' of null
at UglifyWriter
-~- created here: -~-
at UglifyWriter.Plugin (/Users/mgardner/labs-zola/node_modules/broccoli-plugin/index.js:7:31)
at new UglifyWriter (/Users/mgardner/labs-zola/node_modules/broccoli-uglify-sourcemap/index.js:38:10)
at UglifyWriter (/Users/mgardner/labs-zola/node_modules/broccoli-uglify-sourcemap/index.js:33:12)
at Class.postprocessTree (/Users/mgardner/labs-zola/node_modules/ember-cli-uglify/index.js:54:50)
at projectOrAddon.addons.reduce (/Users/mgardner/labs-zola/node_modules/ember-cli/lib/utilities/addon-process-tree.js:6:25)
at Array.reduce (<anonymous>)
at addonProcessTree (/Users/mgardner/labs-zola/node_modules/ember-cli/lib/utilities/addon-process-tree.js:4:32)
at EmberApp.addonPostprocessTree (/Users/mgardner/labs-zola/node_modules/ember-cli/lib/broccoli/ember-app.js:842:12)
at EmberApp.host.addonPostprocessTree (/Users/mgardner/labs-zola/node_modules/ember-auto-import/js/auto-import.js:94:20)
at EmberApp.toTree (/Users/mgardner/labs-zola/node_modules/ember-cli/lib/broccoli/ember-app.js:1765:17)
-~- (end) -~-
- name: BuildError
- nodeAnnotation: [undefined]
- nodeName: UglifyWriter
- originalErrorMessage: Cannot read property '_walk' of null
- stack: TypeError: Cannot read property '_walk' of null
at AST_Dot.<anonymous> (/Users/mgardner/labs-zola/node_modules/terser/dist/bundle.js:899:33)
at TreeWalker._visit (/Users/mgardner/labs-zola/node_modules/terser/dist/bundle.js:1229:42)
at AST_Dot._walk (/Users/mgardner/labs-zola/node_modules/terser/dist/bundle.js:898:28)
at AST_VarDef.<anonymous> (/Users/mgardner/labs-zola/node_modules/terser/dist/bundle.js:854:44)
at TreeWalker._visit (/Users/mgardner/labs-zola/node_modules/terser/dist/bundle.js:1229:42)
at AST_VarDef._walk (/Users/mgardner/labs-zola/node_modules/terser/dist/bundle.js:852:28)
at AST_Var.<anonymous> (/Users/mgardner/labs-zola/node_modules/terser/dist/bundle.js:782:88)
at TreeWalker._visit (/Users/mgardner/labs-zola/node_modules/terser/dist/bundle.js:1229:42)
at AST_Var._walk (/Users/mgardner/labs-zola/node_modules/terser/dist/bundle.js:780:28)
at walk_body (/Users/mgardner/labs-zola/node_modules/terser/dist/bundle.js:379:122)
=================================================================================
Edit: my problem seems related to this: https://github.com/mishoo/UglifyJS2/issues/3274#issuecomment-431063615
I've been using the analyzer for fun over at https://emberclear.io/bundle.html :)
But the generated bundle is a smidge out of date, as recently (I believe) there has been some private api change that the analyzer was relying on?
Here is my package.json for reference: https://gitlab.com/NullVoxPopuli/emberclear/blob/master/packages/frontend/package.json