Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

EXPO iOS Bundling failed 6832ms index.tsx (2181 modules) ERROR SyntaxError in node_modules/react-native/src/private/components/virtualview/VirtualView.js: ';' expected (93:19) match (mode) {

Đang mở
#1,602 6 bình luận 4 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, react-native
Lĩnh vực
build-system, tooling

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi với npm run ios và kiểm tra lỗi cú pháp được báo cáo trong node_modules/react-native/src/private/components/virtualview/VirtualView.js. Xem lại các phiên bản và cấu hình được cung cấp của package.json và babel.config.js, sử dụng index.tsx làm điểm vào của bundle. Hoàn thành khi bundle iOS hoàn tất mà không có lỗi cú pháp này.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I've never written a problem, sorry if anything is missing.

npm run ios

iOS Bundling failed 6832ms index.tsx (2181 modules) ERROR SyntaxError in node_modules/react-native/src/private/components/virtualview/VirtualView.js: ';' expected (93:19) match (mode) {

{
"name": "tapthing-fe",
"version": "1.0.0",
"main": "index.tsx",
"scripts": {
"start": "expo start",
"android": "expo run:android",
"ios": "expo run:ios",
"web": "expo start --web"
},
"expo": {
"install": {
"exclude": [
"@shopify/flash-list"
]
}
},
"dependencies": {
"@d11/react-native-fast-image": "^8.12.0",
"@expo/metro-runtime": "6.1.2",
"@expo/vector-icons": "^15.0.2",
"@gorhom/bottom-sheet": "5.2.6",
"@react-native-async-storage/async-storage": "^2.2.0",
"@react-native-community/netinfo": "11.4.1",
"@react-navigation/bottom-tabs": "^7.4.0",
"@react-navigation/drawer": "^7.5.8",
"@react-navigation/elements": "^2.6.3",
"@react-navigation/native": "^7.1.8",
"@react-navigation/native-stack": "^7.3.16",
"@shopify/flash-list": "2.1.0",
"@supabase/supabase-js": "2.58.0",
"@tanstack/react-query": "^5.90.2",
"axios": "1.12.2",
"babel-plugin-module-resolver": "^5.0.2",
"expo": "54.0.13",
"expo-asset": "~12.0.3",
"expo-blur": "~15.0.2",
"expo-constants": "~18.0.3",
"expo-crypto": "~15.0.7",
"expo-dev-client": "~6.0.15",
"expo-font": "~14.0.9",
"expo-haptics": "~15.0.2",
"expo-image": "~3.0.2",
"expo-image-picker": "~17.0.8",
"expo-linear-gradient": "~15.0.7",
"expo-linking": "~8.0.2",
"expo-localization": "^17.0.7",
"expo-location": "~19.0.7",
"expo-sharing": "~14.0.7",
"expo-splash-screen": "~31.0.3",
"expo-status-bar": "~3.0.3",
"expo-symbols": "~1.0.2",
"expo-web-browser": "~15.0.2",
"i18next": "^25.5.3",
"libphonenumber-js": "1.12.23",
"mime": "4.1.0",
"onesignal-expo-plugin": "2.0.3",
"react": "19.1.0",
"react-dom": "19.1.0",
"react-i18next": "^16.0.0",
"react-native": "0.81.4",
"react-native-gesture-handler": "~2.28.0",
"react-native-get-random-values": "1.11.0",
"react-native-image-viewing": "0.2.2",
"react-native-international-phone-number": "0.11.0",
"react-native-onesignal": "5.2.13",
"react-native-paper": "^5.14.5",
"react-native-reanimated": "~4.1.1",
"react-native-safe-area-context": "~5.6.0",
"react-native-screens": "~4.16.0",
"react-native-view-shot": "4.0.3",
"react-native-web": "^0.21.0",
"react-native-worklets": "0.5.1",
"reactotron-react-native": "5.1.17",
"uuid": "13.0.0",
"zustand": "^5.0.8"
},
"devDependencies": {
"@types/react": "~19.1.0",
"eslint": "^9.25.0",
"eslint-config-expo": "~10.0.0",
"typescript": "~5.9.2"
},
"private": true,
"engines": {
"node": "22.x",
"npm": "11.x"
},
"packageManager": "[email protected]"
}

// babel.config.js
module.exports = function (api) {
api.cache(true);

const isProd = process.env.NODE_ENV === 'production';

return {
presets: ['babel-preset-expo'],
plugins: [
// Alias
[
'module-resolver',
{
alias: {
'@': './src',
'@components': './src/components',
'@theme': './src/theme',
'@screens': './src/screens',
'@navigation': './src/navigation',
'@assets': './src/assets',
'@hooks': './src/hooks',
'@providers': './src/providers',
'@locales': './src/locales',
'@context': './src/context',
'@store': './src/store',
'@libs': './src/libs',
'@utils': './src/utils',
'@config': './src/config',
'@api': './src/api',
},
},
],

  // Paper va PRIMA di Reanimated
  ...(isProd ? ['react-native-paper/babel'] : []),

  // Deve essere SEMPRE l'ultimo
  'react-native-reanimated/plugin',
],

};
};

Ngôn ngữ chính
JavaScript
Star
5.6k
Fork
702
Merge trung bình
3 ngày 2 giờ
Pull request đã merge (30 ngày)
57

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của react/metro

Tất cả issue của react/metro

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.