Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting TypeError: App.Router is undefined after building ember.js #2623

Closed
maxsap opened this issue May 3, 2013 · 4 comments
Closed

Getting TypeError: App.Router is undefined after building ember.js #2623

maxsap opened this issue May 3, 2013 · 4 comments

Comments

@maxsap
Copy link

maxsap commented May 3, 2013

Hello, I would like to build ember.js using Ubuntu 13.
I have cloned the official Github project, cd into the project and as described in the readme file I did:
bundle install
rake dist
no error is shown on screen and as a result I get a directory shown in the image
screenshot from 2013-05-03 14 04 01
I would like to use ember and ember-data, so I include
ember.js
ember-data-deps.js
files in my test project.
The problem is that I am getting a TypeError: App.Router is undefined
I am using this at my client.js file to init ember

this.App = Ember.Application.create();

App.Router.map(function() {
this.route('contributors');
this.route('contributor', {path: '/contributors/:contributor_id'});
});

Am I doing something wrong in the build process?
Should I include some other js files in my project?
Thank you in advanced.

@bradleypriest
Copy link
Member

Hi there, would you mind please moving this question to StackOverflow. If you link back, I'll be happy to help you out.

@stefanpenner
Copy link
Member

@maxsap ember-data is it's own package located at http://github.com/emberjs/data

Please note: although ember-data is used by some, including myself, it is still what I would consider experimental and experiencing lots of churn as we solidify it.

@maxsap
Copy link
Author

maxsap commented May 3, 2013

@stefanpenner Thank you for the heads up I am aware of that but would like to test it, that is one of the reasons I would like to be able to compile ember from source.
@bradleypriest stackoverflow thread as requested http://stackoverflow.com/questions/16367555/getting-typeerror-app-router-is-undefined-after-building-ember-js

Thank you all for the quick responses.
Best regards Maximos.

@intuitivepixel
Copy link
Contributor

@maxsap you have a possibly acceptable answer on SO :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants