Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

<img src={require(this.state.img_src)}/> fails #36

Closed
esrevinu opened this issue May 27, 2016 · 2 comments
Closed

<img src={require(this.state.img_src)}/> fails #36

esrevinu opened this issue May 27, 2016 · 2 comments

Comments

@esrevinu
Copy link

Perhaps we cann't require a variable? How to solve this problem?

@danawoodman
Copy link

I image this fails because url-loader is only called when building your bundle and cannot be called dynamically during runtime of your application.

@SpaceK33z
Copy link
Contributor

Jep, this not possible and could never be handled by url-loader since it is dynamic.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants