Comments (4)
@0-a-e ?
from pingheng.
Trying to build again, I get this error:
➜ pingheng git:(new) ✗ npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
Welcome to Metro!
Fast - Scalable - Integrated
error Unable to resolve module ./tabPages/bottomSheet/BottomSheet from /tmp/pingheng/pages/Main.tsx:
None of these files exist:
* pages/tabPages/bottomSheet/BottomSheet(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
* pages/tabPages/bottomSheet/BottomSheet/index(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
2 | import {DarkTheme, NavigationContainer, useNavigation} from '@react-navigation/native';
3 | import {createNativeStackNavigator} from '@react-navigation/native-stack';
> 4 | import BottomSheet from './tabPages/bottomSheet/BottomSheet';
| ^
5 | import NotifyScreen from './tabPages/notify/Notify';
6 | import TimelineScreen from './tabPages/timeline/Timeline';
7 | import UserScreen from './tabPages/user/User';.
Error: Unable to resolve module ./tabPages/bottomSheet/BottomSheet from /tmp/pingheng/pages/Main.tsx:
None of these files exist:
* pages/tabPages/bottomSheet/BottomSheet(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
* pages/tabPages/bottomSheet/BottomSheet/index(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
2 | import {DarkTheme, NavigationContainer, useNavigation} from '@react-navigation/native';
3 | import {createNativeStackNavigator} from '@react-navigation/native-stack';
> 4 | import BottomSheet from './tabPages/bottomSheet/BottomSheet';
| ^
5 | import NotifyScreen from './tabPages/notify/Notify';
6 | import TimelineScreen from './tabPages/timeline/Timeline';
7 | import UserScreen from './tabPages/user/User';
at ModuleResolver.resolveDependency (/tmp/pingheng/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:136:15)
at DependencyGraph.resolveDependency (/tmp/pingheng/node_modules/metro/src/node-haste/DependencyGraph.js:231:43)
at Object.resolve (/tmp/pingheng/node_modules/metro/src/lib/transformHelpers.js:129:24)
at resolve (/tmp/pingheng/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:33)
at /tmp/pingheng/node_modules/metro/src/DeltaBundler/traverseDependencies.js:412:26
at Array.reduce (<anonymous>)
at resolveDependencies (/tmp/pingheng/node_modules/metro/src/DeltaBundler/traverseDependencies.js:411:33)
at processModule (/tmp/pingheng/node_modules/metro/src/DeltaBundler/traverseDependencies.js:140:31)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async addDependency (/tmp/pingheng/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18)
info Run CLI with --verbose flag for more details.
from pingheng.
Sorry for the delay in confirming. Thank you for your contribution!
from pingheng.
I will check the commits and merge them later.
from pingheng.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pingheng.