#emberjs

/

      • dcherman2 joined the channel
      • jtong_ joined the channel
      • jtong has quit
      • krawchyk joined the channel
      • krawchyk has quit
      • sandstrom joined the channel
      • jtong_ has quit
      • krawchyk joined the channel
      • basz joined the channel
      • futilegames joined the channel
      • jbasdf joined the channel
      • futilegames has quit
      • sandstrom has quit
      • bmac joined the channel
      • sandstrom joined the channel
      • kepek has quit
      • jtong joined the channel
      • Vip3rousRX
        Hey guys, I’m getting an error upon build and I’m not sure how to fix / what’s the root cause. I’m currently getting: ConcatWithMaps: nothing matched [ligef/**/*.js]
      • Error: ConcatWithMaps: nothing matched [ligef/**/*.js]
      • I tried setting locationType: 'auto', in config/environment.js which solved it for the current instance, but when I restarted ember server I get it again and can’t get past it
      • jtong has quit
      • when I hit the home route I get: ENOENT: no such file or directory, scandir 'undefined/'
      • diamondg_ joined the channel
      • jtong joined the channel
      • alexspeller
        Vip3rousRX: what is "ligef" ?
      • Vip3rousRX
        that is the name of the app
      • duggiefresh joined the channel
      • hmm… setting locationType: ‘none’ just fixed it while the server was running, my page loads now...
      • but, i don’t have a clue why?
      • sandstrom joined the channel
      • jtong has quit
      • xtagon joined the channel
      • hydras joined the channel
      • cloke has quit
      • futilegames joined the channel
      • cloke joined the channel
      • yoyo__ joined the channel
      • dadamssg joined the channel
      • poli joined the channel
      • sandstrom has quit
      • nerium has quit
      • futilegames has quit
      • sandstrom joined the channel
      • alxlopez joined the channel
      • cloke has quit
      • cloke joined the channel
      • joshsmith joined the channel
      • Vip3rousRX has quit
      • joshsmith
        is there a good way to take an adapter error at the model level and decide to continue to render, except with something different, like an error template or error component or something?
      • I can handle this by transitioning to a different route, but I think it’s a poor user experience for someone to lose the URL they typed
      • alxlopez
        hi everyone, I'm trying to learn ember but I'm stuck on creating my first app with ember 2.3
      • joshsmith
        er and sorry, I meant adapter error at the route level
      • jtong joined the channel
      • Gandalfar
        alxlopez, just tell us where you are stuck
      • jtong has quit
      • jtong joined the channel
      • alxlopez
        I was following the instructions but when I checked ember version the console display 1.3
      • Gandalfar
        alxlopez, you'll want ember-cli beta
      • alxlopez
        and if I change in bower.json to use ember 2.3.0 and run bower install it shows me errors
      • Gandalfar
      • alexspeller
      • Gandalfar: you can do `npm install -g ember-cli@beta`
      • alxlopez: ^
      • alxlopez
        ok I'm going to try this
      • joshsmith
        alexspeller: isn’t this transitioning?
      • alxlopez
        thanks
      • Gandalfar
        alexspeller, awesome, thanks :)
      • alxlopez has quit
      • alexspeller
        joshsmith: I'm not sure what you mean by that question
      • Gandalfar
        alexspeller, I think this #1 question here, it should really be in the 2.x guides
      • joshsmith
        what you linked in the guides shows a transition to an error page
      • jtong_ joined the channel
      • alexspeller
        joshsmith: as far as I can tell, the error substate is exactly what you're looking for
      • joshsmith: you asked "decide to continue to render, except with something different, like an error template"
      • joshsmith: that's what error substates do
      • jtong has quit
      • Gandalfar: yes, I agree it's very very bad that the default ember install installs an old version of ember
      • Gandalfar
        alexspeller, does it makes sense to add a note about this in the guides?
      • ah
      • but is in the guides
      • alexspeller
        Gandalfar: it's been that way for months, due to semver issues. Personally I'd argue that a good on-boarding experience is more important than semver issues but that's not the decision that's been made
      • Gandalfar
        nevermind then
      • diamondgfx joined the channel
      • people just don't read
      • jansegre joined the channel
      • joshsmith
        alexspeller: I see, but it doesn’t look like that ever gets hit, I just get an “Adapter operation failed” error because of a 404
      • nerium joined the channel
      • alex88 joined the channel
      • sandstrom joined the channel
      • alexspeller
        joshsmith: what did you try to implement the error substate?
      • joshsmith: here's a simple example https://ember-twiddle.com/effde4fa35977ea62c8f?...
      • joshsmith
        just created a templates/route-name/error.hbs
      • nothing at all renders, though. the app just errors out
      • alexspeller
        joshsmith: is the loading error in the "route-name" route?
      • joshsmith
        yes, if I debug into actions: error, you can see there’s an ember$data$lib$adapters$errors$$AdapterError
      • alexspeller
        joshsmith: that won't work
      • joshsmith: routes are heirarchical. You can't enter route-name/error if there is an error in route-name loading because you'd have to enter route-name first
      • dhdemerson
        alexspeller: re: stuff discussed earlier. I'm wrapping my array items with a checked attribute. Is an ArrayProxy the correct way to go about doing that?
      • joshsmith
        so it would have to be handled at application-error then?
      • alexspeller
        joshsmith: your error template / route has to be a sibling of the route where the error occurs
      • joshsmith
        I’m confused, because it appears that the error is occurring in the “route-name” route I mentioned
      • alexspeller
        dhdemerson: I don't see where an array proxy would help you
      • joshsmith: yes, that's the case
      • dhdemerson: a plain array is all you need
      • dhdemerson
        alexspeller: Using the "objectAtContent" to add the checked attribute to items
      • alexspeller
        dhdemerson: [{item: someItem, checked: false}, {item: someOtherItem, checked: true}]
      • dhdemerson
        alexspeller: Where do I make that array? In the component? If so how do I access the model from there? Do I put it in a computed property?
      • alexspeller
        dhdemerson: make the array at the highest point in your heirarchy where the data is needed
      • dhdemerson: maybe that's a component, maybe a controller, or maybe you want to store it in a service if it's more global
      • nerium has quit
      • joshsmith
        so alexspeller maybe this is something that can be clarified in docs? I thought that templates/route-name/error.hbs would work, but templates/route-name-error.hbs was what actually worked
      • alexspeller
        joshsmith: https://guides.emberjs.com/v2.3.0/routing/loadi... shows the naming of the error templates like that
      • joshsmith
        is this a misunderstanding on my part, or are the docs suggesting that would have worked?
      • enkristoffer joined the channel
      • according to that it seems like templates/route-name/error.hbs should have worked
      • alexspeller
        joshsmith: nope, it says "articles.overview-error" not "articles.overview.error"
      • fwiw I think that page could use some love, but it does seem to be correct to me
      • joshsmith
        alexspeller: but it does say “articles.error”
      • yoyo__ has quit
      • or “articles-error”
      • alexspeller
        joshsmith: yes, that will also work for errors in the articles.overview route
      • joshsmith
        oh wait, I think I see what I’m missing
      • yeah, this is really confusing
      • I see what you meant in the way you explained it, but the way it is explained here in the docs does not clarify it the same way
      • Gandalfar
        joshsmith, https://www.youtube.com/watch?v=Dp57YdJPWx4 good talk on this subject
      • joshsmith
        thanks Gandalfar
      • cloke has quit
      • alexspeller
        I touch on substates in that talk, I'm doing a more in-depth talk at ember global meetup on the 5th Feb
      • joshsmith
        will that be recorded?
      • alexspeller
        it will be solely about error and loading substates
      • yes
      • joshsmith
        excellent
      • alexspeller
        joshsmith: but if you didn't know it's a live global streamed event, not a physical meetup
      • joshsmith
        I’ve been way out of the Ember run loop for awhile, sadly
      • sofly joined the channel
      • alexspeller
        wait, I think it's the 6th of Feb
      • joshsmith
        yeah, it’s the 6th
      • it’s okay, I can sit in line for a day
      • sandstrom joined the channel
      • maletor joined the channel
      • InezK is now known as InezK_away
      • InezK_away is now known as InezK
      • ur5us joined the channel
      • cloke joined the channel
      • basz has quit
      • jansegre joined the channel
      • bmac has quit
      • nerium joined the channel
      • bengillies joined the channel