gpt4 book ai didi

reactjs - React Native Expo 安装错误。引用错误 : process is not defined at Module. RNiq

转载 作者:行者123 更新时间:2023-12-05 05:39:32 25 4
gpt4 key购买 nike

我正在尝试使用 expo 安装 React Native 应用程序。我已经尝试了所有更新包以及以前答案中的更多更新包,但均未成功。然而,它失败了,并在 Web 界面上给我这个错误:An unexpected error has occurred.在控制台上,它向我显示了这条错误消息:

ReferenceError: process is not defined
at Module.RNiq (index-1b0e10d3020a016605d2.js:1:237007)
at l (webpack-e067438c4cf4ef2ef178.js:1:563)
at index-1b0e10d3020a016605d2.js:1:457536
at main-41e61ebd24edb78847da.js:1:19485
at main-41e61ebd24edb78847da.js:1:19653
ue @ main-41e61ebd24edb78847da.js:1

我的package.json

{
"name": "my-app",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"expo": "~45.0.0",
"expo-status-bar": "~1.3.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-native": "0.68.2",
"react-native-web": "0.17.7"
},
"devDependencies": {
"@babel/core": "^7.12.9"
},
"private": true
}

error image

最佳答案

我使用的是 expo-cli 版本 5.4.10,但在回滚到 expo-cli 版本 5.4.9 时它起作用了。查找各种 npm expo 版本 here

关于reactjs - React Native Expo 安装错误。引用错误 : process is not defined at Module. RNiq,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72655424/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com