react-native-sketchbook icon indicating copy to clipboard operation
react-native-sketchbook copied to clipboard

Can't add image assets

Open ianbayne opened this issue 3 years ago • 0 comments

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?

ianbayne avatar Dec 15 '20 08:12 ianbayne