Skip to content

Support for Yarn workspaces?Β #568

@jackiehluo

Description

@jackiehluo

Which operating system and version is the project developed on?
macOS High Sierra, 10.13.4

Which version of ruby is the project developed on?
2.3.1

Which version of npm is the project developed on?
Yarn 1.6.0

Which version of ember-cli is the project developed on?
3.1.3

What is the rails version?
4.2.7.1

What is the ember-cli-rails version (from Gemfile)?
0.10.0

What is the ember-cli-rails-addon version (from package.json)?
0.10.0

Is your application server multi-threaded
(such as puma and unicorn) or is it multi-process (such as thin and webrick)?

Multi-threaded (puma).

What are the contents of config/initializers/ember.rb?

EmberCli.configure do |c|
  c.app :frontend, path: "frontend/packages/application"
end

I'm using Yarn workspaces, and so I have the Rails project, a frontend directory inside it, and then the Ember app I want to mount lives at frontend/packages/application. However, I've been getting a DependencyError:

No `ember-cli` executable found for `frontend`.

Install it:

    $ cd /Users/jackieluo/Code/merchant-front-end/frontend/packages/application
    $ npm install

Due the nature of Yarn workspaces, the node_modules live in frontend, not the application directory, but I think the application should still have access to the Ember CLI executable:

screen shot 2018-05-01 at 4 28 31 pm

Does the project support Yarn workspaces in general? If not, is that on the roadmap at all?

Thanks!

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