我正在研究React + Redux + FusionJS项目。
包装:
{
"name": "erd-ui",
"description": "rfc manager",
"version": "1.0.0",
"author": "Zhennian Liang <zhennian@uber.com>",
"repository": {
"type": "git",
"url": "gitolite@code.uber.internal:vis/rfc-ui.git"
},
"bugs": {
"url": "https://code.uberinternal.com/maniphest/task/create/",
"email": "zhennian@uber.com"
},
"dependencies": {
"@uber/atreyu": "^6.2.0",
"@uber/fusion-metrics": "^1.0.5",
"@uber/fusion-plugin-analytics-session": "^2.0.7",
"@uber/fusion-plugin-atreyu": "^2.0.9",
"@uber/fusion-plugin-auth-headers": "^3.0.6",
"@uber/fusion-plugin-error-handling": "^2.0.8",
"@uber/fusion-plugin-events-adapter": "^2.2.0",
"@uber/fusion-plugin-flipr": "^2.0.4",
"@uber/fusion-plugin-galileo": "^2.0.8",
"@uber/fusion-plugin-google-analytics-react": "^2.0.8",
"@uber/fusion-plugin-heatpipe": "^3.0.9",
"@uber/fusion-plugin-logtron-react": "^2.1.6",
"@uber/fusion-plugin-m3-react": "^2.0.9",
"@uber/fusion-plugin-rosetta": "^2.2.0",
"@uber/fusion-plugin-s3-asset-proxying": "^2.1.0",
"@uber/fusion-plugin-secrets": "^2.0.7",
"@uber/fusion-plugin-secure-headers": "^5.0.7",
"@uber/fusion-plugin-tchannel": "^2.0.8",
"@uber/fusion-plugin-tracer": "^2.0.6",
"@uber/fusion-plugin-urate": "^3.1.2",
"@uber/icons": "^1.0.8",
"@uber/node-heatpipe-publisher": "^3.0.1",
"baseui": "^8.17.1",
"codemirror": "^5.42.2",
"elasticsearch": "^16.4.0",
"eslint-plugin-jest": "^22.2.2",
"fusion-cli": "^2.4.2",
"fusion-core": "^2.0.6",
"fusion-plugin-browser-performance-emitter": "^2.1.8",
"fusion-plugin-csrf-protection": "^3.0.6",
"fusion-plugin-error-handling": "^2.1.4",
"fusion-plugin-font-loader-react": "^2.0.7",
"fusion-plugin-i18n-react": "^3.0.6",
"fusion-plugin-introspect": "^1.0.8",
"fusion-plugin-jwt": "^2.0.6",
"fusion-plugin-node-performance-emitter": "^2.0.8",
"fusion-plugin-react-helmet-async": "^2.1.2",
"fusion-plugin-react-redux": "^2.0.6",
"fusion-plugin-react-router": "^2.0.8",
"fusion-plugin-redux-action-emitter-enhancer": "^3.0.8",
"fusion-plugin-rpc-redux-react": "^4.0.6",
"fusion-plugin-styletron-react": "^3.0.9",
"fusion-plugin-universal-events-react": "^2.1.6",
"fusion-react": "^3.1.6",
"fusion-tokens": "^2.0.6",
"javascript-time-ago": "^2.0.1",
"lodash": "^4.17.10",
"long": "^4.0.0",
"luxon": "^1.10.0",
"node-sass-chokidar": "^1.3.4",
"node-sass-tilde-importer": "^1.0.2",
"prop-types": "^15.6.2",
"qs": "^6.6.0",
"react": "^16.8.6",
"react-codemirror2": "^6.0.0",
"react-dom": "^16.8.6",
"react-redux": "^7.1.1",
"react-virtualized": "^9.21.0",
"react-virtualized-select": "^3.1.3",
"redux": "^4.0.1",
"redux-actions": "^2.6.4",
"redux-form": "^8.2.6",
"styletron-react": "^5.0.0",
"unfetch": "^4.0.1",
"yarn": "^1.15.2"
},
"devDependencies": {
"@uber/fusion-codemods": "^0.0.16",
"@uber/fusion-dev-cli": "^2.0.6",
"babel-eslint": "^10.0.1",
"enzyme": "^3.8.0",
"enzyme-adapter-react-16": "^1.7.1",
"eslint": "^6.5.1",
"eslint-config-fusion": "^6.0.4",
"eslint-plugin-cup": "^2.0.1",
"eslint-plugin-flowtype": "^4.3.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-react": "^7.12.4",
"eslint-plugin-react-hooks": "^2.1.2",
"flow-bin": "^0.109.0",
"fusion-test-utils": "^2.0.6",
"prettier": "^1.15.3",
"puppeteer": "^1.11.0",
"react-test-renderer": "^16.7.0",
"tape": "^4.9.2"
},
"scripts": {
"lint": "eslint src/",
"flow": "flow check | true",
"sass": "node-sass-chokidar src/sass/styles.scss src/static/styles.css --importer=node_modules/node-sass-tilde-importer --output-style compressed",
"sass-watch": "node-sass-chokidar --watch src/sass/styles.scss src/static/styles.css --importer=node_modules/node-sass-tilde-importer",
"dev": "SVC_ID='rfc-ui' fusion-dev-cli fusion dev",
"start": "PORT_HTTP=\"$UBER_PORT_HTTP\" fusion start",
"build": "yarn sass && fusion build",
"build-production": "yarn sass && fusion build --production && upload-assets-to-s3",
"test": "fusion test",
"test-integration": "yarn test --env=node --testFolder=__integration__",
"cover": "fusion test --coverage",
"update-flipr-rfcmanager": "curl -H \"X-Uber-Source: rfcmanager\" \"localhost:14570/properties?namespaces=rfcmanager&namespaces=rfcmanager.dca1\" > ./flipr/rfcmanager_flipr_bootstrap.json"
},
"engines": {
"node": "10.16.3",
"npm": "6.12.0",
"yarn": "1.19.1"
},
"scaffold-version": "1.0.1",
"private": true
}
问题日志:
error: (client) ./node_modules/fusion-plugin-rpc-redux-react/dist-browser-esm/index.js
Module not found: Error: Can't resolve 'fusion-plugin-rpc' in '/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc-redux-react/dist-browser-esm'
resolve 'fusion-plugin-rpc' in '/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc-redux-react/dist-browser-esm'
Parsed request is a module
using description file: /Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc-redux-react/package.json (relative path: ./dist-browser-esm)
Field 'es2015' doesn't contain a valid alias configuration
Field 'es2017' doesn't contain a valid alias configuration
resolve as module
/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc-redux-react/dist-browser-esm/node_modules doesn't exist or is not a directory
/Users/zhennian/Uber/rfc-ui/node_modules/node_modules doesn't exist or is not a directory
/Users/zhennian/Uber/node_modules doesn't exist or is not a directory
/Users/zhennian/node_modules doesn't exist or is not a directory
/Users/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory
looking for modules in /Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc-redux-react/node_modules
using description file: /Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc-redux-react/package.json (relative path: ./node_modules)
Field 'es2015' doesn't contain a valid alias configuration
Field 'es2017' doesn't contain a valid alias configuration
looking for modules in /Users/zhennian/Uber/rfc-ui/node_modules
using description file: /Users/zhennian/Uber/rfc-ui/package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
Field 'es2015' doesn't contain a valid alias configuration
Field 'es2017' doesn't contain a valid alias configuration
using description file: /Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc-redux-react/package.json (relative path: ./node_modules/fusion-plugin-rpc)
no extension
Field 'es2015' doesn't contain a valid alias configuration
Field 'es2017' doesn't contain a valid alias configuration
using description file: /Users/zhennian/Uber/rfc-ui/package.json (relative path: ./node_modules/fusion-plugin-rpc)
no extension
Field 'browser' doesn't contain a valid alias configuration
Field 'es2015' doesn't contain a valid alias configuration
Field 'es2017' doesn't contain a valid alias configuration
/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc-redux-react/node_modules/fusion-plugin-rpc doesn't exist
.wasm
Field 'es2015' doesn't contain a valid alias configuration
Field 'es2017' doesn't contain a valid alias configuration
/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc doesn't exist
.wasm
Field 'browser' doesn't contain a valid alias configuration
Field 'es2015' doesn't contain a valid alias configuration
Field 'es2017' doesn't contain a valid alias configuration
/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc-redux-react/node_modules/fusion-plugin-rpc.wasm doesn't exist
.mjs
Field 'es2015' doesn't contain a valid alias configuration
Field 'es2017' doesn't contain a valid alias configuration
/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc.wasm doesn't exist
.mjs
Field 'browser' doesn't contain a valid alias configuration
Field 'es2015' doesn't contain a valid alias configuration
Field 'es2017' doesn't contain a valid alias configuration
/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc-redux-react/node_modules/fusion-plugin-rpc.mjs doesn't exist
.js
Field 'es2015' doesn't contain a valid alias configuration
Field 'es2017' doesn't contain a valid alias configuration
/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc.mjs doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
Field 'es2015' doesn't contain a valid alias configuration
Field 'es2017' doesn't contain a valid alias configuration
/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc-redux-react/node_modules/fusion-plugin-rpc.js doesn't exist
.json
Field 'es2015' doesn't contain a valid alias configuration
Field 'es2017' doesn't contain a valid alias configuration
/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
Field 'es2015' doesn't contain a valid alias configuration
Field 'es2017' doesn't contain a valid alias configuration
/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc-redux-react/node_modules/fusion-plugin-rpc.json doesn't exist
/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc.json doesn't exist
as directory
/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc-redux-react/node_modules/fusion-plugin-rpc doesn't exist
as directory
/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc doesn't exist
[/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc-redux-react/dist-browser-esm/node_modules]
[/Users/zhennian/Uber/rfc-ui/node_modules/node_modules]
[/Users/zhennian/Uber/node_modules]
[/Users/zhennian/node_modules]
[/Users/node_modules]
[/node_modules]
[/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc-redux-react/node_modules/fusion-plugin-rpc]
[/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc]
[/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc-redux-react/node_modules/fusion-plugin-rpc.wasm]
[/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc.wasm]
[/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc-redux-react/node_modules/fusion-plugin-rpc.mjs]
[/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc.mjs]
[/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc-redux-react/node_modules/fusion-plugin-rpc.js]
[/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc.js]
[/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc-redux-react/node_modules/fusion-plugin-rpc.json]
[/Users/zhennian/Uber/rfc-ui/node_modules/fusion-plugin-rpc.json]
@ ./node_modules/fusion-plugin-rpc-redux-react/dist-browser-esm/index.js 8:0-102 13:0-131 13:0-131 13:0-131 13:0-131
@ ./src/main.js
@ ./node_modules/fusion-cli/entries/client-entry.js
@ multi ./node_modules/fusion-cli/entries/client-public-path.js (webpack)-hot-middleware/client.js?name=client ./node_modules/fusion-cli/entries/client-entry.js
添加"fusion-plugin-rpc": "^3.3.1"
后,运行yarn dev
,出现以下错误:
2019-10-11T20:59:25.231Z - info: Initializing Jaeger Tracer with RemoteReporter and RemoteSampler
runtime/cgo: could not obtain pthread_keys
tried 0x116 0x117 0x118 0x119 0x11a 0x11b 0x11c 0x11d 0x11e 0x11f 0x120 0x121 0x122 0x123 0x124
有人知道如何解决上述问题吗?我已经在这里呆了很长时间了。