Skip to content

Commit

Permalink
fix expo-asset module not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
pinocchio-life-like committed Jan 9, 2025
1 parent ac58e61 commit b28d459
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
27 changes: 15 additions & 12 deletions apps/expo/app.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
module.exports = ({ config }) => {
return {
...config,
plugins: config.plugins.map((i) => {
if (i[0] === '@rnmapbox/maps') {
return [
'@rnmapbox/maps',
{
RNMapboxMapsImpl: 'mapbox',
RNMapboxMapsDownloadToken: process.env.MAPBOX_DOWNLOADS_TOKEN,
},
];
}
return i;
}),
plugins: [
...config.plugins.map((i) => {
if (i[0] === '@rnmapbox/maps') {
return [
'@rnmapbox/maps',
{
RNMapboxMapsImpl: 'mapbox',
RNMapboxMapsDownloadToken: process.env.MAPBOX_DOWNLOADS_TOKEN,
},
];
}
return i;
}),
'expo-asset',
],
};
};
1 change: 1 addition & 0 deletions apps/expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"eslint-plugin-react-native": "^4.0.0",
"expo": "~51.0.39",
"expo-application": "~5.9.1",
"expo-asset": "~10.0.10",
"expo-auth-session": "~5.5.2",
"expo-blur": "~13.0.2",
"expo-build-properties": "~0.12.5",
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22068,6 +22068,7 @@ __metadata:
eslint-plugin-react-native: "npm:^4.0.0"
expo: "npm:~51.0.39"
expo-application: "npm:~5.9.1"
expo-asset: "npm:~10.0.10"
expo-auth-session: "npm:~5.5.2"
expo-blur: "npm:~13.0.2"
expo-build-properties: "npm:~0.12.5"
Expand Down

0 comments on commit b28d459

Please sign in to comment.