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 always use Ember's generators, even when creating my Dummy app's routes. Every time that I spun up ember-cli-addon-docs I'd translate the getting started instructions to the ember generate ... commands.
This caused me to run an ember g --dummy route docs which politely creates my template.hbs and route.js. What I discovered was that if the route.js was present, my API documentation in the sidebar would only show up if I started at the application-index route and navigated directly to the docs route.
When the docs route would refresh, my API doc links in the sidebar would disappear.
If I was viewing a specific api-doc page and reloaded it, I'd get the following error: Error while processing route: docs.api.item Cannot read property 'get' of null TypeError: Cannot read property 'get' of null.
The fix for this was for me to remove my empty docs/route.js.
We might want to mention this in the getting started documentation for ember-cli-addon-docs but even more we might want to fix this. I don't feel that the mere presence of an empty docs/route.js should somehow impede the model() hook from firing.
I am happy to fork and fix this if someone knows what might be the ailing cause and can point me in the correct direction. I too am happy to update the getting started section of your docs with this warning message.
Thanks again for this addon.
The text was updated successfully, but these errors were encountered:
nadnoslen
pushed a commit
to cybertooth-io/ember-simple-auth-okta
that referenced
this issue
Jun 21, 2019
I always use Ember's generators, even when creating my Dummy app's routes. Every time that I spun up
ember-cli-addon-docs
I'd translate the getting started instructions to theember generate ...
commands.This caused me to run an
ember g --dummy route docs
which politely creates mytemplate.hbs
androute.js
. What I discovered was that if theroute.js
was present, my API documentation in the sidebar would only show up if I started at theapplication-index
route and navigated directly to the docs route.docs
route would refresh, my API doc links in the sidebar would disappear.Error while processing route: docs.api.item Cannot read property 'get' of null TypeError: Cannot read property 'get' of null
.The fix for this was for me to remove my empty
docs/route.js
.We might want to mention this in the getting started documentation for
ember-cli-addon-docs
but even more we might want to fix this. I don't feel that the mere presence of an emptydocs/route.js
should somehow impede themodel()
hook from firing.I am happy to fork and fix this if someone knows what might be the ailing cause and can point me in the correct direction. I too am happy to update the getting started section of your docs with this warning message.
Thanks again for this addon.
The text was updated successfully, but these errors were encountered: