I am newbie discovering the workflow of expo framework and I recently found this problem.
The errors in expo metro bundler console.
Failed building JavaScript bundle.Error: While resolving module `@expo/vector-icons/AntDesign`, the Haste package `@expo/vector-icons` was found. However the module `AntDesign` could not be found within the package. Indeed, none of these files exist: * `\my-app\src\Expo\vector-icons\AntDesign(.native|.android.expo.ts|.native.expo.ts|.expo.ts|.android.expo.tsx|.native.expo.tsx|.expo.tsx|.android.expo.js|.native.expo.js|.expo.js|.android.expo.jsx|.native.expo.jsx|.expo.jsx|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)`* `\my-app\src\Expo\vector-icons\AntDesign\index(.native|.android.expo.ts|.native.expo.ts|.expo.ts|.android.expo.tsx|.native.expo.tsx|.expo.tsx|.android.expo.js|.native.expo.js|.expo.js|.android.expo.jsx|.native.expo.jsx|.expo.jsx|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)`
Failed building JavaScript bundle.While resolving module `@expo/websql/custom`, the Haste package `@expo` was found. However the module `websql/custom` could not be found within the package. Indeed, none of these files exist:* `\my-app\src\Expo\websql\custom(.native|.android.expo.ts|.native.expo.ts|.expo.ts|.android.expo.tsx|.native.expo.tsx|.expo.tsx|.android.expo.js|.native.expo.js|.expo.js|.android.expo.jsx|.native.expo.jsx|.expo.jsx|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)`* `\my-app\src\Expo\websql\custom\index(.native|.android.expo.ts|.native.expo.ts|.expo.ts|.android.expo.tsx|.native.expo.tsx|.expo.tsx|.android.expo.js|.native.expo.js|.expo.js|.android.expo.jsx|.native.expo.jsx|.expo.jsx|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)`
Both packages are present in node_modules/@expo/
directory, but the project doesn't recognize then. If I take the package websql
and the files related to AntDesign
from node_modules/
and paste them in src/Expo/
everything works perfect, but I don't understand why I have this problems related to paths within the proyect.
I installed all dependencies with yarn install --network-timeout 100000
. And these are my expo diagnostics result:
Expo CLI 4.3.2 environment info: System: OS: Windows 10 10.0.19042 Binaries: Node: 10.16.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.21.1 - C:\Users\Diego Sevilla\AppData\Roaming\npm\yarn.CMD npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: Version 4.1.0.0 AI-201.8743.12.41.6953283 npmPackages: expo: ^39.0.2 => 39.0.5 react: 16.13.1 => 16.13.1 react-dom: 16.13.1 => 16.13.1 react-native: ^0.63.2 => 0.63.4 react-native-web: ^0.12.0-rc.1 => 0.12.3 react-navigation: ^3.12.0 => 3.13.0 Expo Workflow: bare
The workflow is bare and I am aware that this may be a cause of the problem as well.
Any help will be very appreciated. Thanks.