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

require environment before require ember-rails results in error "define is not defined" #536

Open
jannolii opened this issue Jan 4, 2017 · 1 comment

Comments

@jannolii
Copy link

jannolii commented Jan 4, 2017

I see error in console when I load the page:

Uncaught ReferenceError: define is not defined
    at environment.self-5ac0a43….js?body=1:1
DEBUG: -------------------------------
ember.self-afe3db4….js?body=1:5736 DEBUG: Ember      : 2.10.2
ember.self-afe3db4….js?body=1:5736 DEBUG: Ember Data : 2.10.0
ember.self-afe3db4….js?body=1:5736 DEBUG: jQuery     : 1.12.4
ember.self-afe3db4….js?body=1:5736 DEBUG: -------------------------------
VM3711:83 Ember Inspector Active

Error dissapears when I move "//= require ./environment" after "//= require ember-rails/application" in application.es6 file.

Is it by design or should it be fixed in ember-rails?

ruby 2.3.3p222, rails 5.0.1, macOS 10.12.2, Chrome 55.0.2883.95 (64-bit)

@ClayShentrup
Copy link

Same! Thanks for the fix!

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

2 participants