[bare] Assets not loading after eject
See original GitHub issue🐛 Bug Report
Summary of Issue
None of any asset was loaded when run project in Expo client
Environment - output of expo diagnostics
& the platform(s) you’re targeting
Expo CLI 3.23.0 environment info:
System:
OS: macOS 10.15.5
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 14.3.0 - /usr/local/bin/node
Yarn: 1.17.3 - /usr/local/bin/yarn
npm: 6.14.5 - /usr/local/bin/npm
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.6010548
Xcode: 12.0/12A8169g - /usr/bin/xcodebuild
npmPackages:
expo: ~38.0.8 => 38.0.9
react: ~16.11.0 => 16.11.0
react-dom: ~16.11.0 => 16.11.0
react-native: ~0.62.2 => 0.62.2
react-native-web: ~0.11.7 => 0.11.7
npmGlobalPackages:
expo-cli: 3.23.0
Reproducible Demo
Link to Reproducible repo: https://github.com/giautm/asset-test
Steps to Reproduce
- Run
expo init asset-test
, choosetabs (TypeScript)
form the list. - Run
expo eject
to eject to bareflow. - Run
expo publish
Expected Behavior vs Actual Behavior
Asset will load as normal.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Expo/React Native: Can't find image file after ejecting to bare ...
Ok I found out the problem. When ejecting, expo is supposed to generate a metro.config.js file that looks like that: module.exports = { ......
Read more >How To Eject From Expo Managed Workflow to Bare? - Pagepro
Introduction. If you are afraid to eject from Expo Managed Workflow to Bare Workflow, this article will help you a lot.
Read more >[Solved]-Expo eject from managed to bare not working
So I resolved this by following these steps after I ejected: https://docs.expo.io/bare/installing-updates/. And also adding the below to the Expo.plist file ...
Read more >Being free from “expo” in React Native apps - Medium
This article covers a way to develop without expo for people who decided to keep the project according to their own development strategy....
Read more >How to Fix Image Links after WordPress Migration
My friend told me some people with similar problems could get a solution by fixing their permalinks settings in the wp dashboard. Reply....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
this is awkward but expected behavior. you need to run
expo publish --target managed
to publish for expo client when you eject. the default behavior ofexpo publish
in ejected projects is to publish for consumption by a bare app which has a slightly different way of loading fonts.i’m going to add a notice to
expo publish
about this to make it more clearthe next version of expo-cli will include a warning when you run
expo publish
in a bare project with theexpo
package included in package.json