ManhanGroup / calbuilds

Crowdsourcing authoritative info on recent & ongoing developments in California.
https://calbuilds.manhan.co/
0 stars 2 forks source link

Ember 3.1 update investigation #74

Open kaden-weber opened 1 year ago

kaden-weber commented 1 year ago

compiling any leads and resources here.

kaden-weber commented 1 year ago

Theory: Router Breaks

Reasoning

The error message on loading the map is "error when processing route: index ... type error undefined..." Pages such as about and glossary work fine, except for their links to the map route.

Possible Causes

Unusual nested routing

This could be a holdover that didn't get changed to current (3.0) ember syntax during a previous update

Links

Some links that could be useful while investigating nested routing: https://guides.emberjs.com/v3.1.0/tutorial/subroutes/ https://guides.emberjs.com/v3.1.0/templates/links/ https://guides.emberjs.com/v3.1.0/routing/specifying-a-routes-model/ https://stackoverflow.com/questions/33330689/how-to-work-with-nested-routes-in-ember-js

ember-simple-auth not working correctly

Since it gives a lot of trouble, ember-simple-auth could be the root cause of the routing problems. The usual routing strategy in regards to how login and logout is handled could be a contributing factor.

Suspects that are mostly investigated

Deprecated router functions like transitionTo

This is still a part of the 3.1 guides, so just a deprecation shouldn't be causing issues. guides entry