You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure if this resolver has the intention to support the namespace convention as App.TestRoute, but once I heard that the goal of the resolver is being merged to the ember repository, so this is why I am reporting this use case.
My application is not using ember-cli but it uses the ember-jj-abrams-resolver to modularize the code with the default conventions.
The project setup provides the ability to run different isolated scenarios to be able to run the app in different route states with fixture data. For those cases, I have usually used the namespace convention to load all the code in a unique file.
However, a nested route App.TestResultRoute could NOT be resolved with the ember-jj-abrams-resolver. Fortunately, this problem can be easily solved by returning the route within a module define('app/routes/test/result').
I have getting deeper in the code to find a way to fix the problem but could not find a solution because:
route:test.result is transformed by normalize transformed to route:test/result
when the resolver cannot find the module, it calls resolverOther method of its Ember.DefaultResolver base class which neither the Ember.DefaultResolver can find it because its parsedName has been transformed.
Calling the defaultResolver with the reverted normalized fullName would resolve the instance but I am not sure how to implement it to cover all the possible cases.
The text was updated successfully, but these errors were encountered:
I am not sure if this resolver has the intention to support the namespace convention as
App.TestRoute
, but once I heard that the goal of the resolver is being merged to the ember repository, so this is why I am reporting this use case.My application is not using
ember-cli
but it uses theember-jj-abrams-resolver
to modularize the code with the default conventions.The project setup provides the ability to run different isolated scenarios to be able to run the app in different route states with fixture data. For those cases, I have usually used the namespace convention to load all the code in a unique file.
However, a nested route
App.TestResultRoute
could NOT be resolved with theember-jj-abrams-resolver
. Fortunately, this problem can be easily solved by returning the route within a moduledefine('app/routes/test/result')
.I have getting deeper in the code to find a way to fix the problem but could not find a solution because:
route:test.result
is transformed by normalize transformed toroute:test/result
resolverOther
method of itsEmber.DefaultResolver
base class which neither theEmber.DefaultResolver
can find it because its parsedName has been transformed.Calling the defaultResolver with the reverted normalized fullName would resolve the instance but I am not sure how to implement it to cover all the possible cases.
The text was updated successfully, but these errors were encountered: