Skip to content

Resources with same name but different plugins fail to load #765

Closed

Description

I'm using the cs and hbr plugins (although I don't think this is caused by these specific plugins).

When I depend on two resources with the same name but with different plugins like this: cs!mainview and hbr!mainview, both have their plugin's load function called, but one of these resources isn't actually seen as being loaded and will cause require() to eventually time out.

I'm speculating this is due to load calling parentRequire with [name], which for both resources is ['mainview'].

Workaround: when I rename these resources so that their name without plugin is unique, both resources load correctly.

Activity

  1. jrburke commented on Jun 11, 2013

    @jrburke
    Member

    Ah yes, I believe the root cause is #638. This is a weakness right now, and this is a great example of why that needs to be fixed. I am going to close this as a duplicate, but mention the use case in that ticket to highlight its importance. Leave a comment in that ticket if you want to track when it is fixed.

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