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
Import doesn't work #4
Comments
Meteor doesn't compile assets in the |
@nathantreid changed the directory name from |
Just an update - I've been extremely busy of late and haven't been able to get to this yet. It's still on my radar! |
As long as you help me figure this out, I don't mind how long it is |
OK, based on the repo there were 2 issues:
After performing step 2, you can switch to using an import backgroundImg from '/images/hero-banner.jpg'
// const backgroundImg = '/images/hero-banner.jpg';
export default Background = props => <StyledHeroBackground image={backgroundImg} /> As noted previously, you'll need to move the images somewhere other than the I also noticed that you are using the Meteor
|
Hi! It's been such a long time! Intially I was using your plugin in my project and my assets weren't in the public folder. I followed all the steps you told me above, but as time went on, i realised I had to continue with the project. Thanks for your support anyways! |
Hi there, I just downloaded your package recently. I put all my assets (images, audio, etc.) in the
public/
folder. The following line of code didn't work:I have checked and I'm certain that the above directory is correct. What am I doing wrong?
The text was updated successfully, but these errors were encountered: