Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up for component shadowing? #3

Open
adispezio opened this issue Dec 1, 2019 · 0 comments
Open

Set up for component shadowing? #3

adispezio opened this issue Dec 1, 2019 · 0 comments

Comments

@adispezio
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant