Skip to content

Set up for component shadowing?Β #3

@adispezio

Description

@adispezio

Howdy, beautiful theme!

I'm attempting to shadow some of the theme's components and have hit a couple road blocks. Simple components with no local imports work fine, such as LogoWrapper.js, however complex components with imports to relative theme files fail with:

Can't resolve '../hooks/useCycleColor' in '/Users/.../sample-site/src/gatsby-theme-document/components'

Is there something obvious I'm missing to make these files play nice? Issue in the path? Or is there some kind of webpack changes I need?

Thanks in advance!

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