Skip to content

Problems when used with Yarn workspaces #47

Closed

Description

@k3n

Background: Workspaces in Yarn

In short, Yarn workspaces work by hoisting duplicate dependencies within a monorepo to the parent project, and things just work because of the native require() process for finding dependencies (traversing up directories).

Problem: From what I can tell, ember-cli-version-checker manually finds dependencies, and doesn't follow the logic which powers require(), and so features such as dependency hoisting are a non-starter for Ember apps.

Are my assumptions correct thus far? If so, have there been any discussions around altering the logic to more closely resemble require(), or are there any viable known alternatives?

Thank you in advance, can provide more info as needed.

Activity

  1. rwjblue commented on Dec 7, 2017

    @rwjblue
    Member

    ember-cli-version-checker (since v2.0.0 at least) only leverages the normal require algorithm to find npm dependencies. v1.0.0 had the behavior you are describing.

    Can you confirm which version you are using (note: there are often times multiple versions at play in an app...)?

    Not too long ago @ef4 did a ton of work to go through and submit pull requests to all of the deps that were still using v1.0.0, I believe they are all addressed and released at this point so you should try to update and make sure you are on latest of everything...

  2. k3n commented on Dec 8, 2017

    @k3n
    Author

    Hrmm, you're right. Still having issues in other places with dependencies, even after trying out [email protected]. Going to shelve my work for now and let things settle. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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