对版本0.60进行本机更新后,以下命令停止工作。
./gradlew buildRelease
./gradlew assembleRelease
./gradlew bundleRelease
这是堆栈跟踪:
任务:app:bundleReleaseJsAndAssets失败
失败:构建失败,并出现异常。
- 出了什么问题:任务':app:bundleReleaseJsAndAssets'的执行失败。
无法列出'/ Users / diegoaugusto / Documents / project / packages / mobileapp / node_modules / @ typescript-eslint / parser / node_modules / @ typescript-eslint / experimental-utils / node_的内容 modules / eslint / node_modules / .bin / semver”。无法遵循符号 链接。
显然该错误出在打字稿eslint中,但是我没有在任何地方使用它,而且这不是我直接安装的模块
Package.json:
{
"name": "mobileapp",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"@react-native-community/async-storage": "^1.5.1",
"@react-native-community/eslint-config": "^0.0.5",
"@react-native-community/netinfo": "^4.1.3",
"axios": "^0.19.0",
"date-fns": "^1.30.1",
"eslint": "^6.1.0",
"internationalization": "1.0.0",
"jest": "^24.8.0",
"metro-react-native-babel-preset": "^0.55.0",
"react": "16.8.6",
"react-dom": "^16.8.6",
"react-native": "0.60.4",
"react-native-gesture-handler": "^1.3.0",
"react-native-linear-gradient": "^2.5.5",
"react-native-picker-select": "^6.3.0",
"react-native-responsive-screen": "^1.2.2",
"react-native-snap-carousel": "^3.8.0",
"react-native-svg": "^9.5.3",
"react-native-svg-uri": "^1.2.3",
"react-native-swipeout": "^2.3.6",
"react-native-vector-icons": "^6.6.0",
"react-navigation": "^3.11.1",
"react-redux": "^7.1.0",
"redux": "^4.0.4",
"redux-saga": "^1.0.5",
"shared-store": "1.0.0",
"styled-components": "^4.3.2",
"utils": "1.0.0"
},
"devDependencies": {
"@babel/core": "^7.5.5",
"@babel/runtime": "^7.5.5",
"babel-jest": "^24.8.0",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.14.0",
"enzyme-to-json": "^3.3.5",
"react-test-renderer": "16.8.6",
"styled-components-test-utils": "^1.0.2"
},
"jest": {
"preset": "react-native",
"collectCoverage": true,
"moduleDirectories": [
"node_modules",
"src"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
],
"transform": {
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js"
},
"setupFiles": [
"<rootDir>/src/config/jestSetup.js"
],
"transformIgnorePatterns": [
"node_modules/(?!(jest-)?react-native)"
],
"coveragePathIgnorePatterns": [
"-wrappers.js",
"-wrapper.js",
"/node_modules/",
"/jest"
]
}
}
有人可以帮我吗?