Skip to content

Transparent png breaks loaders #396

Closed
@tbillington

Description

@tbillington

I get an error when loading a png file with transparency. I tried in the javascript and in the css, same result for both. When I load it in the browser though the image loads and works anyway.

Failed to compile.

Error in .img/btn-search.png
Module parse failed: /img/btn-search.png Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected character '�' (1:0)
 @ ./~/react-scripts/~/css-loader!./~/react-scripts/~/postcss-loader!./src/SearchBox/SearchBox.css 6:274-330

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions