Skip to content
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

Local image file .png in ./app/src folder is not showing in windows build #53

Open
edcylau opened this issue Feb 10, 2023 · 0 comments
Open

Comments

@edcylau
Copy link

edcylau commented Feb 10, 2023

Hi all, I have a encounter an issue with my windows build, the Image cannot be shown from the ./app/src/Logo.png, just Blank and got this error from metro bundler, not sure if it's related, it's trying to resolve the my component in the node_modules and ....\node\node_modules, which does not exist there. Is it the path should be hoisted 2 more layers?

  • Windows 10 SDK 10.0.18372.0
  • Visual Studio Community 2019
├── node_modules
├── package.json
└── packages
    ├── @my-app/app
        ├── src
                 ├── Logo.png
    ├── @my-app/macos 
    ├── @my-app/windows

Error: Unable to resolve module ./app/src/presentation/ui/MainScreen from C:\Users\<project-folder>\packages\windows/.: ./app/src/presentation/ui/MainScreen could not be found within the project or in these directories:
  node_modules
  ..\..\node_modules

If you are sure the module exists, try these steps:
 1. Clear watchman watches: watchman watch-del-all
 2. Delete node_modules and run yarn install
 3. Reset Metro's cache: yarn start --reset-cache
 4. Remove the cache: rm -rf /tmp/metro-*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant