Skip to content

Document the reasons why duplicate namespace error can occur #2028

@barak007

Description

@barak007

Describe your issue

Duplicate namespace "Button123456789" found in multiple different resources:
...
...
This issue indicates multiple versions of the same library in the compilation, or different paths importing the same stylesheet like: "esm" or "cjs".

Stylable emits this error but does not give a clear way for how to solve/investigate the problem.
This is because usually the solution is not in the Stylable domain and related to package (npm) composition and build strategies.

Since we don't want to explode the error message with text. We can create a page in Stylable.io explaining this error (and maybe all the errors), then we can just give an additional link in the error description that will give extra information for the next steps.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    diagnosticsWarnings and errorsdocsDocumentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions