Try having images under src/ for relative path
This commit is contained in:
@@ -25,7 +25,7 @@ export const TalentTree: React.FC<Props> = ({ specId, knownTalents, availablePoi
|
||||
)
|
||||
|
||||
const bodyStyle = {
|
||||
backgroundImage: `url(/images/specs/${specId}.jpg)`
|
||||
backgroundImage: `url(${require(`../images/specs/${specId}.jpg`)})`
|
||||
}
|
||||
|
||||
const arrows = talents
|
||||
|
||||
Reference in New Issue
Block a user