DEV Community

Discussion on: Make a landing page for your band in 30 minutes with gatsby-theme-musician 🎸

 
biwers profile image
Nick Cue

when I put my-site/src/gatsby-theme-musician/components/footer.js

I have a error

Thread Thread
 
ekafyi profile image
Eka

The footer component has relative imports, ie. it imports these other components from the theme.

import useSiteMetadata from "../use-site-metadata"
import Social from "./social"

If you don't change those, you get errors because there's no Social component file in your site's dir. So make sure you change the import paths. You can see the example of Applying new props in gatsbyjs.org/docs/themes/shadowing... to figure out the theme import path.

Thread Thread
 
biwers profile image
Nick Cue

Thanks, but I have no idea how to solve the problem. What is the path to add?

Thread Thread
 
biwers profile image
Nick Cue

I try to add but not working

import useSiteMetadata from "gatsby-theme-musician/theme/src/"
import { Social } from "gatsby-theme-musician/theme/src/components/"

export default props =>
export default props =>

Thread Thread
 
ekafyi profile image
Eka

Try removing the theme and including the filename like in the theme.

// in the theme
import useSiteMetadata from "../use-site-metadata"
import Social from "./social"

// in your site
import useSiteMetadata from "gatsby-theme-musician/src/use-site-metadata";
import { Social } from "gatsby-theme-musician/src/components/social";
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
biwers profile image
Nick Cue

Its not working, but its ok thanks

Thread Thread
 
biwers profile image
Nick Cue

Do you know, how to change or add a favicon ?