Skip to content

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

@jannolii

Description

@jannolii

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions