Problem/Motivation

Creating a new component in a subtheme that references another SDC component in the subtheme namespace will not correctly render when viewed in the storybook.

Proposed resolution

This occurs because the sdc-plugin that storybook uses to resolve a namespace and component name to the include files only works for the `civictheme` namespace. Adding the ability to configure the supported namespaces in vite.config.js will allow components referencing namespaces other than civictheme to correctly render as well.

Comments

alan.cole created an issue. See original summary.

alan.cole’s picture

alan.cole’s picture

Status: Active » Needs review
alan.cole’s picture

Assigned: alan.cole » richardgaunt
alan.cole’s picture

Title: Subthemes that use the subtheme namespace do not work in storybook. » Includes using the subtheme namespace do not work in storybook.
fionamorrison23’s picture

Version: 1.11.0 » 1.x-dev
fionamorrison23’s picture

richardgaunt’s picture

Status: Needs review » Reviewed & tested by the community

  • 57437ed5 committed on 1.x
    Issue #3533316: Includes using the subtheme namespace do not work in...
fionamorrison23’s picture

Version: 1.x-dev » 1.12.0
Assigned: richardgaunt » Unassigned
Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.