kellyselden/ember-awesome-macros

upgrading to 0.41.0 results in TypeError: args.slice is not a function

gabrielgrant opened this issue · 1 comments

When using 0.34.0 my app loads fine. When upgrading to 0.41.0, trying to load the app results in TypeError: args.slice is not a function on my index route

Full traceback:

Error while processing route: app.index args.slice is not a function TypeError: args.slice is not a function
    at parseComputedArgs (http://127.0.0.1:4200/assets/vendor.js:172540:18)
    at exports.default (http://127.0.0.1:4200/assets/vendor.js:172575:30)
    at Module.callback (http://127.0.0.1:4200/assets/vendor.js:172983:48)
    at Module.exports (http://127.0.0.1:4200/assets/vendor.js:111:32)
    at Module._reify (http://127.0.0.1:4200/assets/vendor.js:148:59)
    at Module.reify (http://127.0.0.1:4200/assets/vendor.js:135:27)
    at Module.exports (http://127.0.0.1:4200/assets/vendor.js:109:10)
    at Module._reify (http://127.0.0.1:4200/assets/vendor.js:148:59)
    at Module.reify (http://127.0.0.1:4200/assets/vendor.js:135:27)
    at Module.exports (http://127.0.0.1:4200/assets/vendor.js:109:10)
ember-metal.js:3988 TypeError: args.slice is not a function
    at parseComputedArgs (-build-computed.js:6)
    at exports.default (-build-computed.js:41)
    at Module.callback (lazy-computed.js:7)
    at Module.exports (loader.js:106)
    at Module._reify (loader.js:143)
    at Module.reify (loader.js:130)
    at Module.exports (loader.js:104)
    at Module._reify (loader.js:143)
    at Module.reify (loader.js:130)
    at Module.exports (loader.js:104)

screenshot from 2018-03-04 07 34 20

screenshot from 2018-03-04 08 13 57
screenshot from 2018-03-04 08 13 42

Debugger confirms that args is an object, not an array:

screenshot from 2018-03-05 09 43 06

...which seems to originate in lazy-computed.js:

screenshot from 2018-03-05 09 44 51

... where it gets passed to build-computed.js

screenshot from 2018-03-05 09 46 26

If this is still an issue, please post back.