I have ben struggling with this issue, for some time and can t get my head around it.
What I basically want to do is use a repeat.for on a Map object. I expect this just to work, but I get a non-repeatable error. This repeat.for can be found in aurelia-template-resource package, and is is the instanceof keyword that does not work properly.
When I use instanceof in the codebehined of my aurelia components, it does work.
This makes me think the babel transpilation of my own source is different from the transpilation of the node_module before being squeezed into vendor-script.js
I synced the options in the babel config section of aurelia.json and .babelrc.
current cli version is 0.35.1, your v6.4.1 is probably your nodejs version. BTW, pls upgrade to latest nodejs v8.12.0, because next version of aurelia-cli will soon only works on v8.9.0+.
don’t know whether you use webpack or requirejs. But in either way, please don’t touch the transpiler setting in aurelia.json. Transpilation is only for your local src, both webpack and requirejs setup skip node_module folder by default.
I reset my aurelia.json changes. I dont really know what I use. Using the CLI I just use au build no clue what happens in the back. How do I know?
This is exactly what I do. But when friends is a Map, it still uses the array-repeat-strategy instead of the map-repeat-strategy. This is caused by instanceof not working as expected…
I did some more testing and I found out that somewhere down the line, the Map object is changed in an object. All the methods like Set are still available and working, however the instanceof returns object.
When I wrap it again into a Map (inside the vendor.js) it works again…