Skip to content

How to set image paths correctly #725

Open
@vslzl

Description

@vslzl

I'm trying to set image src paths and css background image paths as follows:

<img src="images/1.png" />

or

.some-css-class{
    background-color:url('images/1.png');
}

but I'm getting error

NodeInvocationException: Prerendering failed because of error: Error: Cannot find module './images/1.png'
at webpackMissingModule (webpack-internal:///./ClientApp/app/layout/layout.component.html:1:1035)
at eval (webpack-internal:///./ClientApp/app/layout/layout.component.html:1:1124)
at Object../ClientApp/app/layout/layout.component.html

my image file is at wwwroot/images/1.png

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