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

Can't add image assets #47

Open
ianbayne opened this issue Dec 15, 2020 · 0 comments
Open

Can't add image assets #47

ianbayne opened this issue Dec 15, 2020 · 0 comments

Comments

@ianbayne
Copy link

This is a great example of what can be done with ReactNativeWeb and Storybook. Thanks for creating this.

I just tried git cloning to play around with it, but when I added an image asset to one of the components, I got the following error:

ERROR in ./src/Buttons/BaseButton.tsx
Module not found: Error: Can't resolve '../../../assets/logo/encoreLogo.png' in '/Users/ian/code/ianbayne/temp/react-native-sketchbook/src/Buttons'

I doubled-checked and the path is correct.

I'm guessing that some sort of loader would need to be added to webpack.config.js, but I can't seem to figure out how to do so. Any ideas?

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