Skip to content

Can't add image assets #47

@ianbayne

Description

@ianbayne

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions