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]
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: 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?
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: 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