第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

錯誤:捆綁失?。篢ypeError:無法讀取未定義的屬性“transformFile”

錯誤:捆綁失?。篢ypeError:無法讀取未定義的屬性“transformFile”

回首憶惘然 2022-05-26 11:26:14
每當我運行 react-native start 時都會收到此錯誤,但最近在我的節(jié)點模塊中安裝了 firebase-tools 和 stripe 后開始發(fā)生此錯誤,但在此之前它會運行得很好,這也是錯誤的堆棧跟蹤:::ffff:127.0.0.1 - - [22/Mar/2020:19:59:30 +0000] "GET /index.bundle?platform=android&dev=true&minify=false HTTP/1.1" 500 - "-" "okhttp/3.12.1"error: bundling failed: TypeError: Cannot read property 'transformFile' of undefined    at C:\Users\me\Project\node_modules\react-native\node_modules\@react-native-community\cli\node_modules\metro\src\Bundler.js:87:34    at Generator.next (<anonymous>)    at asyncGeneratorStep (C:\Users\me\Project\node_modules\react-native\node_modules\@react-native-community\cli\node_modules\metro\src\Bundler.js:14:24)    at _next (C:\Users\me\Project\node_modules\react-native\node_modules\@react-native-community\cli\node_modules\metro\src\Bundler.js:34:9)    at processTicksAndRejections (internal/process/task_queues.js:93:5)這是我的 package.json:{  "name": "Project",  "version": "0.0.1",  "private": true,  "scripts": {    "android": "react-native run-android",    "ios": "react-native run-ios",    "start": "react-native start",    "test": "jest",    "lint": "eslint ."  },  "dependencies": {    "card-validator": "6.2.0",    "firebase-tools": "7.15.1",    "jetifier": "^1.6.5",    "prop-types": "15.7.2",    "react": "^16.13.1",    "react-art": "^16.13.1",    "react-dom": "^16.13.1",    "react-geocode": "0.2.1",    "react-native": "0.61.5",    "react-native-country-picker-modal": "1.9.8",    "react-native-elements": "1.2.7",    "react-native-firebase": "5.6.0",    "react-native-geocoding": "0.4.0",    "react-native-gesture-handler": "1.5.2",    "react-native-maps": "0.26.1",    "react-native-paper": "3.2.1",    "react-native-reanimated": "1.4.0",  },很清楚另一個在 StackOverflow 上存在相同問題的問題,但該問題的解決方案對我不起作用,因為當我運行 react-native start 時 npm 忽略了它,因為這些模塊已被棄用,我仍然得到相同錯誤
查看完整描述

3 回答

?
天涯盡頭無女友

TA貢獻1831條經(jīng)驗 獲得超9個贊

將 NodeJS 降級到 LTS 版本總是有幫助的。我在嘗試使用 NodeJS^17 時遇到了同樣的問題,但是當我將其降級到 NodeJS^14 并重新安裝 node_modules 時,一切都已修復。



查看完整回答
反對 回復 2022-05-26
?
蝴蝶刀刀

TA貢獻1801條經(jīng)驗 獲得超8個贊

問題下第一條評論中的解決方案對我有用,它刪除了 node_modules 和 package-lock.json,但是,我不想這樣做,因為我知道我會遇到更多錯誤,而且我確實做到了,但是至少我能夠修復它們并讓它運行,這與我詢問的頑固錯誤不同。所以是的,這種方法有效,但我絕對希望有人有更好的方法。



查看完整回答
反對 回復 2022-05-26
?
POPMUISE

TA貢獻1765條經(jīng)驗 獲得超5個贊

我遇到了這個錯誤。我做了兩件事,我認為這導致我解決了這個問題:


我在 monorepo 工作,所以我將以下代碼添加到我的package.json:

"workspaces": {

    "nohoist": [

        "react-native",

        "react-native/**",

        "react",

        "react/**"

    ]

}

我將我的metro-react-native-babel-preset包從升級^0.58.0到最新版本 - ^0.59.0( yarn add -D metro-react-native-babel-preset)


查看完整回答
反對 回復 2022-05-26
  • 3 回答
  • 0 關(guān)注
  • 264 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號