-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: getting the error: "File assets/images/<imageName>@3x.png for ios not found in compilation assets" #622
Comments
Hi @oferRounds, you should be able to import the assets normally into your project even from outside of your project - all you have to do is configure asset loader to include that path and then import the asset in your code. Can you please describe the details of this scenario? Like, how are you importing these assets, and your assets-loader configuration? |
Thank you @jbroma! so in my project folder, I have the following hierarchy: "project folder", and under it:
|
And this is my
|
@oferRounds ok I think I know what you mean now, you're talking about the output path for images. All images found within a project are always put inside of the assets directory in inside of the build and there is no way to configure that atm. May I ask what is your use-case here? Why does the path matter in this case? With all of that said, we're planning a big refactor to the assets loader API so it's more aligned with Webpack - this alignment would make something like this possible (as long as this is what you need) |
Hi, my images folder is located in the root project diretory under the "images" folder (and not under "assets/images"), how can I change the target location for repack? I tried to change the
assetsPath
to several options, but all faildHappy for your help!
(using the latest version, v4.0.0 with react native 0.72.14
The text was updated successfully, but these errors were encountered: