Skip to content

Cannot figure out how to prebuild Ember App in Development so that Rails will have it ready on first load. #590

@ashrocket

Description

@ashrocket

Which operating system and version is the project developed on?
All of them (BigSur MacOs 11.2.3 , and Heroku: 4.4.0-1086-aws Linux Kernel, Ubunutu Ubuntu 18.04.5 LTS)
Which version of ruby is the project developed on?
2.6.6
Which version of npm is the project developed on?
6.14.11
Which version of ember-cli is the project developed on?
ember-cli: 3.13.2
node: 10.24.0
os: darwin x64
What is the rails version?
Rails 6.0.3.5
What is the ember-cli-rails version (from Gemfile)?
ember-cli-rails-0.10.0
What is the ember-cli-rails-addon version (from package.json)?
ember-cli-rails-addon": "^0.10.0"
Is your application server multi-threaded
(such as puma and unicorn) or is it multi-process (such as thin and webrick)?

puma in production, and development
What are the contents of config/initializers/ember.rb?
EmberCli.configure do |c|
c.app :matching_inbox, yarn: true
end
Yarn version 1.17.3
What are the contents of the Rails' view that renders the Ember application?

<%= render 'layouts/partials/head_tags' %>
      <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
      <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
      <% unless Rails.env.test? || @layout_no_ember %>
        <%= javascript_include_tag "https://polyfill.io/v3/polyfill.min.js" %>
        <%= include_ember_script_tags :ember_app_name, prepend: ember_prepend_path %>
        <%= include_ember_stylesheet_tags :ember_app_name, prepend: ember_prepend_path %>
        <%= javascript_include_tag 'application-saved-grant-index', 'data-turbolinks-track' => true %>
      <% end %>
      <meta name="turbolinks-visit-control" content="reload">
    </head>

This results in
EmberCli::BuildError - :ember_app_name has failed to build:

How are the EmberCLI-related routes defined?
in routes.js files for each component

How is the application deployed?
I'm primarily concerned about making it work in development mode, so it's not being deployed, it's just being run.
EmberApp is in RAILS_ROOT/ember_app_name directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions