-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
How to source images in layouts/* #6060
Comments
My fault... const Layout = ({ children, data, mypic }) is not working ;-) |
This was referenced Dec 27, 2023
This was referenced Dec 27, 2023
This was referenced Dec 27, 2023
This was referenced Jan 6, 2024
This was referenced Jan 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried to import an image from src/pages/ in my src/layouts/index.js. Its a in a static footer section.
import mypic from '../pages/img/mypic.png' results in undefined (with {console.log(mypic)}. In the pages/* templates it works perfectly, why not in src/layouts/?
Maybe somebody can push me in the right direction. :-)
The text was updated successfully, but these errors were encountered: