-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[expo-assets] search for key without file extension #12624
Conversation
🛠 Suggested fixes:📋 Missing changelogApply suggested changes:diff --git a/packages/expo-asset/CHANGELOG.md b/packages/expo-asset/CHANGELOG.md
index 5375be0c..9c959510 100644
--- a/packages/expo-asset/CHANGELOG.md
+++ b/packages/expo-asset/CHANGELOG.md
@@ -8,6 +8,8 @@
### 🐛 Bug fixes
+- search for key without file extension. ([#12624](https://github.com/expo/expo/pull/12624) by [@jkhales](https://github.com/jkhales))
+
## 8.3.1 — 2021-03-23
### 🐛 Bug fixes |
14c828f
to
bae7800
Compare
🛠 Suggested fixes:📋 Missing changelogApply suggested changes:diff --git a/packages/expo-asset/CHANGELOG.md b/packages/expo-asset/CHANGELOG.md
index 5375be0c..9c959510 100644
--- a/packages/expo-asset/CHANGELOG.md
+++ b/packages/expo-asset/CHANGELOG.md
@@ -8,6 +8,8 @@
### 🐛 Bug fixes
+- search for key without file extension. ([#12624](https://github.com/expo/expo/pull/12624) by [@jkhales](https://github.com/jkhales))
+
## 8.3.1 — 2021-03-23
### 🐛 Bug fixes |
1 similar comment
🛠 Suggested fixes:📋 Missing changelogApply suggested changes:diff --git a/packages/expo-asset/CHANGELOG.md b/packages/expo-asset/CHANGELOG.md
index 5375be0c..9c959510 100644
--- a/packages/expo-asset/CHANGELOG.md
+++ b/packages/expo-asset/CHANGELOG.md
@@ -8,6 +8,8 @@
### 🐛 Bug fixes
+- search for key without file extension. ([#12624](https://github.com/expo/expo/pull/12624) by [@jkhales](https://github.com/jkhales))
+
## 8.3.1 — 2021-03-23
### 🐛 Bug fixes |
🛠 Suggested fixes:📋 Missing changelogApply suggested changes:diff --git a/packages/expo-asset/CHANGELOG.md b/packages/expo-asset/CHANGELOG.md
index 5375be0c..9c959510 100644
--- a/packages/expo-asset/CHANGELOG.md
+++ b/packages/expo-asset/CHANGELOG.md
@@ -8,6 +8,8 @@
### 🐛 Bug fixes
+- search for key without file extension. ([#12624](https://github.com/expo/expo/pull/12624) by [@jkhales](https://github.com/jkhales))
+
## 8.3.1 — 2021-03-23
### 🐛 Bug fixes |
🛠 Suggested fixes:📋 Missing changelogApply suggested changes:diff --git a/packages/expo-asset/CHANGELOG.md b/packages/expo-asset/CHANGELOG.md
index 5375be0c..9c959510 100644
--- a/packages/expo-asset/CHANGELOG.md
+++ b/packages/expo-asset/CHANGELOG.md
@@ -8,6 +8,8 @@
### 🐛 Bug fixes
+- search for key without file extension. ([#12624](https://github.com/expo/expo/pull/12624) by [@jkhales](https://github.com/jkhales))
+
## 8.3.1 — 2021-03-23
### 🐛 Bug fixes |
🛠 Suggested fixes:📋 Missing changelogApply suggested changes:diff --git a/packages/expo-asset/CHANGELOG.md b/packages/expo-asset/CHANGELOG.md
index 5375be0c..9c959510 100644
--- a/packages/expo-asset/CHANGELOG.md
+++ b/packages/expo-asset/CHANGELOG.md
@@ -8,6 +8,8 @@
### 🐛 Bug fixes
+- search for key without file extension. ([#12624](https://github.com/expo/expo/pull/12624) by [@jkhales](https://github.com/jkhales))
+
## 8.3.1 — 2021-03-23
### 🐛 Bug fixes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
@@ -0,0 +1,40 @@ | |||
import LocalAssets from 'expo-constants'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import LocalAssets from 'expo-constants'; | |
import Constants from 'expo-constants'; |
🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 indeed. 😅
Co-authored-by: Eric Samelson <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Not sure why, but once this PR was merged I can no longer run the app due to following error
|
Can you provide a bit more information? Ideally a reproducible demo. |
@jkhales I will try to make a minimalistic reproducible demo, will get back to you |
@kubanac95, @jkhales. Could you reproduce this error? I'm getting the same error on an bare project with
|
@qcho - try clearing your metro cache |
@qcho I could not reproduce it in a blank project. I ended up downgrading the versio on the main project since clening up cache nor node_modules helped. |
that's odd because the error message suggests that |
This reverts commit 8672a2a.
This reverts commit 8672a2a.
Why
We are going to be dropping extensions for asset filenames for EAS updates.
How
Search for the extension-less filename first, if it doesn't exist fall back to the legacy method.
Legacy updates will continue to use the old asset scheme.
Test Plan
Confirmed images loaded both by an embedded bundle and a remotely loaded bundle.