question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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 IMG_2596

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

  1. Run expo init asset-test, choose tabs (TypeScript) form the list.
  2. Run expo eject to eject to bareflow.
  3. Run expo publish

Expected Behavior vs Actual Behavior

Asset will load as normal.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
brentvatnecommented, Jul 31, 2020

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 of expo 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 clear

2reactions
brentvatnecommented, Aug 5, 2020

the next version of expo-cli will include a warning when you run expo publish in a bare project with the expo package included in package.json

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found