DockYard / ember-admin

Admin backend for ember-cli projects
MIT License
241 stars 37 forks source link

Uncaught ReferenceError: adminRouter is not defined #78

Closed joog2303 closed 8 years ago

joog2303 commented 8 years ago

Version

Ember 2.6.0 Ember-admin 0.2.1

Steps to reproduce

After adding the below code to the router.js I get an console errror (noted in title):

Router.map(function() { adminRouter(this); });

bcardarella commented 8 years ago

Seems like a duplicate of https://github.com/DockYard/ember-admin/issues/77

Based upon this: https://github.com/DockYard/ember-admin/blob/v0.2.1/tests/dummy/app/router.js#L13 in theory it should be working as the dummy app is consuming the addon for that version. Are you importing it properly: https://github.com/DockYard/ember-admin/blob/v0.2.1/tests/dummy/app/router.js#L3

joog2303 commented 8 years ago

Thanks! I did not have it imported properly

Fix - import adminRouter from 'ember-admin/router';