sodiki
July 30, 2021, 5:32pm
1
Please How can resolve this problem, i
Logs for your project will appear below. Press Ctrl+C to exit.
Failed building JavaScript bundle.
Unable to resolve module ./LocalAssets from /Users//Desktop/mondev/APP-PRO-SALLE-CAISSE/node_modules/expo-asset/build/Asset.js:
None of these files exist:
node_modules/expo-asset/build/LocalAssets(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json|.ios.svg|.native.svg|.svg)
node_modules/expo-asset/build/LocalAssets/index(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json|.ios.svg|.native.svg|.svg)
1 | import { Platform } from ‘@unimodules /core’;
2 | import { getAssetByID } from ‘./AssetRegistry’;
3 | import * as AssetSources from ‘./AssetSources’;
4 | import * as AssetUris from ‘./AssetUris’;
Failed building JavaScript bundle.
Unable to resolve module ./LocalAssets from /Users/joelkhanano/Desktop/mondev/APP-PRO-SALLE-CAISSE/node_modules/expo-asset/build/Asset.js:
wodin
July 31, 2021, 8:22am
2
sodiki:
node_modules/expo-asset/build/LocalAssets(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json|.ios.svg|.native.svg|.svg)
node_modules/expo-asset/build/LocalAssets/index(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json|.ios.svg|.native.svg|.svg)
Hi @sodiki
Do you have expo-asset
in dependencies
in your package.json
? If not, try installing it.
Actually, I see @notbrent posted an answer here. Try clearing your metro cache first:
opened 07:29PM - 20 Jul 21 UTC
closed 12:04AM - 21 Jul 21 UTC
needs validation
### Summary
```
Failed building JavaScript bundle.
Unable to resolve module .… /LocalAssets from /Users/max/.../node_modules/expo-asset/build/Asset.js:
None of these files exist:
* node_modules/expo-asset/build/LocalAssets(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json)
* node_modules/expo-asset/build/LocalAssets/index(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json)
> 1 | import { Platform } from '@unimodules/core';
2 | import { getAssetByID } from './AssetRegistry';
3 | import * as AssetSources from './AssetSources';
4 | import * as AssetUris from './AssetUris';
```
### Managed or bare workflow? If you have `ios/` or `android/` directories in your project, the answer is bare!
managed
### What platform(s) does this occur on?
iOS
### SDK Version (managed workflow only)
_No response_
### Environment
Expo CLI 4.8.1 environment info:
System:
OS: macOS 11.3
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.14.0 - /usr/local/bin/node
npm: 7.16.0 - /usr/local/bin/npm
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
IDEs:
Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
npmPackages:
expo: ~42.0.3 => 42.0.3
react: 16.13.1 => 16.13.1
react-dom: 16.13.1 => 16.13.1
react-native: https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz => 0.63.2
react-native-web: ~0.13.12 => 0.13.18
npmGlobalPackages:
expo-cli: 4.8.1
Expo Workflow: managed
### Reproducible demo or steps to reproduce from a blank project
I removed node_modules from project folder and after `npm i` and clean install I can't run it on ios because of problem: `Unable to resolve module ./LocalAssets`
1 Like
sodiki
July 31, 2021, 9:50pm
3
wodin Thank you, now my projet build.
1 Like
system
Closed
September 30, 2021, 9:51pm
4
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.