更新依赖后(package.json)react-visibility-sensor@5.1.0无法正常工作

时间:2018-12-09 18:58:52

标签: reactjs babel webpack-4

也许有人可以帮助我了解为什么反应可见性传感器停止工作。我不确定它是否可以与某些依赖关系相关,但是实际上,它在我们更新后会很高兴。

之前

"dependencies": {
"autolinker": "^1.6.2",
"autoprefixer": "^6.3.6",
"autosize": "^3.0.20",
"axios": "^0.16.2",
"babel-core": "^6.5.2",
"babel-jest": "^9.0.3",
"babel-loader": "^6.2.2",
"babel-plugin-check-es2015-constants": "https://registry.npmjs.org/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.8.0.tgz",
"babel-plugin-syntax-jsx": "https://registry.npmjs.org/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz",
"babel-plugin-transform-class-properties": "https://registry.npmjs.org/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.19.0.tgz",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-es2015-arrow-functions": "https://registry.npmjs.org/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.8.0.tgz",
"babel-plugin-transform-es2015-block-scoping": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.21.0.tgz",
"babel-plugin-transform-es2015-classes": "https://registry.npmjs.org/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.18.0.tgz",
"babel-plugin-transform-es2015-computed-properties": "https://registry.npmjs.org/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.8.0.tgz",
"babel-plugin-transform-es2015-destructuring": "https://registry.npmjs.org/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.19.0.tgz",
"babel-plugin-transform-es2015-modules-commonjs": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.18.0.tgz",
"babel-plugin-transform-es2015-object-super": "https://registry.npmjs.org/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.8.0.tgz",
"babel-plugin-transform-es2015-parameters": "https://registry.npmjs.org/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.21.0.tgz",
"babel-plugin-transform-es2015-shorthand-properties": "https://registry.npmjs.org/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.18.0.tgz",
"babel-plugin-transform-es2015-spread": "https://registry.npmjs.org/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.8.0.tgz",
"babel-plugin-transform-es2015-template-literals": "https://registry.npmjs.org/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.8.0.tgz",
"babel-plugin-transform-object-assign": "^6.8.0",
"babel-plugin-transform-object-rest-spread": "https://registry.npmjs.org/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.20.2.tgz",
"babel-plugin-transform-react-jsx": "https://registry.npmjs.org/babel-plugin-transform-react-jsx/-/babel-plugin-transform-react-jsx-6.8.0.tgz",
"babel-polyfill": "^6.6.1",
"babel-preset-stage-0": "https://registry.npmjs.org/babel-preset-stage-0/-/babel-preset-stage-0-6.16.0.tgz",
"babel-preset-stage-1": "https://registry.npmjs.org/babel-preset-stage-1/-/babel-preset-stage-1-6.16.0.tgz",
"baobab": "git://github.com/scabbiaza/baobab.git#6e76d8517d8d6e4a4e6080226a7b81e29573b34c",
"baobab-react": "^0.1.1",
"bootstrap-slider": "^5.3.0",
"bower": "^1.8.4",
"browserify": "^9.0.8",
"chai": "^3.5.0",
"classnames": "^1.2.2",
"clean-webpack-plugin": "0.1.8",
"cli-usage": "^0.1.7",
"clipboard": "^1.5.16",
"copy-webpack-plugin": "1.1.1",
"css-loader": "^0.19.0",
"d3": "^3.5.13",
"deep-merge": "^1.0.0",
"del": "^1.1.1",
"enzyme": "^2.6.0",
"es6-promise": "^3.0.2",
"escape-html": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
"extract-text-webpack-plugin": "^0.8.2",
"file-loader": "^0.8.4",
"globule": "^0.2.0",
"imagemin-mozjpeg": "^6.0.0",
"imagemin-webpack-plugin": "^1.5.2",
"imports-loader": "^0.6.5",
"jcarousel": "^0.3.4",
"jest": "^15.1.1",
"jest-cli": "^15.1.1",
"jquery": "^2.1.4",
"jquery-ui": "^1.10.5",
"jquery.cookie": "^1.4.1",
"jsdom": "https://registry.npmjs.org/jsdom/-/jsdom-9.5.0.tgz",
"jsdom-global": "^2.1.0",
"json-loader": "^0.5.2",
"json5": "^0.4.0",
"json5-loader": "^0.6.0",
"less": "^2.5.1",
"less-loader": "^2.2.0",
"lodash.debounce": "^4.0.8",
"lodash.sortbyorder": "^3.4.2",
"lodash.throttle": "^3.0.4",
"match-sorter": "^2.2.3",
"mocha": "^3.2.0",
"moment": "^2.10.3",
"moment-timezone": "^0.5.4",
"normalize-url": "^1.9.1",
"papaparse": "^4.5.0",
"paqmind.data-lens": "^0.4.0",
"postcss-loader": "^0.9.1",
"postcss-utilities": "^0.6.1",
"progressbar.js": "^1.0.1",
"q": "^1.2.0",
"query": "^0.2.0",
"ramda": "^0.25.0",
"raven-js": "^3.13.1",
"react": "^0.14.7",
"react-addons-create-fragment": "^0.14.7",
"react-addons-css-transition-group": "^0.14.8",
"react-addons-pure-render-mixin": "^0.14.7",
"react-addons-test-utils": "^0.14.7",
"react-bootstrap": "^0.29.0",
"react-document-title": "^2.0.1",
"react-dom": "^0.14.7",
"react-native-listener": "^1.0.1",
"react-responsive": "^5.0.0",
"react-router": "^3.0.2",
"react-table": "^6.8.6",
"react-throttle": "^0.2.0",
"react-visibility-sensor": "^3.5.0",
"react-waypoint": "^5.0.0",
"react-widgets": "^3.1.7",
"regexpu-core": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-2.0.0.tgz",
"regjsgen": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz",
"regjsparser": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.1.5.tgz",
"sanitize-html": "^1.18.2",
"sinon": "^1.17.6",
"style-loader": "^0.12.3",
"tcomb": "^3.2.15",
"urijs": "^1.18.12",
"url-loader": "^0.5.6",
"url-parse": "^1.2.0",
"uuid-js": "^0.7.5",
"viewport-units-buggyfill": "^0.6.2",
"webpack": "^1.12.4"
},
"devDependencies": {
  "babel-eslint": "^6.1.2",
  "cross-env": "^3.1.3",
  "eslint": "^3.2.2",
  "eslint-loader": "^1.6.1",
  "eslint-plugin-react": "^4.1.0",
  "xmlhttprequest": "^1.8.0"
},

现在

"dependencies": {
"@babel/core": "^7.1.6",
"@babel/node": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/polyfill": "^7.0.0",
"@babel/preset-env": "^7.1.6",
"@babel/preset-react": "^7.0.0",
"@babel/register": "^7.0.0",
"@paqmind/ramda": "^0.2.0",
"autolinker": "^1.6.2",
"autoprefixer": "^6.3.6",
"autosize": "^3.0.20",
"axios": "^0.16.2",
"babel-loader": "^8.0.4",
"babel-polyfill": "^6.26.0",
"baobab": "git://github.com/scabbiaza/baobab.git#6e76d8517d8d6e4a4e6080226a7b81e29573b34c",
"baobab-react": "^0.1.1",
"bootstrap-slider": "^5.3.0",
"bower": "^1.8.4",
"browserify": "^9.0.8",
"chai": "^3.5.0",
"classnames": "^1.2.2",
"clean-webpack-plugin": "0.1.8",
"convert-source-map": "^1.5.0",
"copy-webpack-plugin": "^4.6.0",
"css-loader": "^0.28.11",
"deep-merge": "^1.0.0",
"enzyme": "^2.6.0",
"es6-promise": "^4.2.5",
"escape-html": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
"extract-text-webpack-plugin": "^3.0.2",
"file-loader": "^1.1.5",
"imagemin-mozjpeg": "^6.0.0",
"imagemin-webpack-plugin": "^1.6.1",
"imports-loader": "^0.6.5",
"jcarousel": "^0.3.4",
"jquery": "^2.1.4",
"jquery-ui": "^1.10.5",
"jquery.cookie": "^1.4.1",
"jsdom": "https://registry.npmjs.org/jsdom/-/jsdom-9.5.0.tgz",
"jsdom-global": "^2.1.0",
"json-loader": "^0.5.2",
"json5": "^0.4.0",
"json5-loader": "^0.6.0",
"less": "^3.8.1",
"less-loader": "^4.1.0",
"lodash.debounce": "^4.0.8",
"lodash.sortbyorder": "^3.4.2",
"lodash.throttle": "^3.0.4",
"match-sorter": "^2.2.3",
"mini-css-extract-plugin": "^0.4.1",
"mocha": "^5.2.0",
"moment": "^2.10.3",
"moment-timezone": "^0.5.4",
"normalize-url": "^1.9.1",
"optimize-css-assets-webpack-plugin": "^5.0.0",
"papaparse": "^4.6.2",
"paqmind.data-lens": "^0.4.0",
"path-webpack": "0.0.3",
"pathz": "^0.10.0",
"postcss-loader": "^2.1.5",
"postcss-utilities": "^0.7.0",
"progressbar.js": "^1.0.1",
"q": "^1.2.0",
"ramda": "^0.25.0",
"raven-js": "^3.27.0",
"react": "^0.14.7",
"react-addons-create-fragment": "^0.14.7",
"react-addons-css-transition-group": "^0.14.8",
"react-addons-pure-render-mixin": "^0.14.7",
"react-addons-test-utils": "^0.14.7",
"react-bootstrap": "^0.29.0",
"react-document-title": "^2.0.1",
"react-dom": "^0.14.7",
"react-native-listener": "^1.0.1",
"react-router": "^3.0.2",
"react-table": "^6.8.6",
"react-visibility-sensor": "^5.0.1",
"react-waypoint": "^5.0.0",
"react-widgets": "^3.1.7",
"sanitize-html": "^1.19.1",
"sinon": "^1.17.6",
"source-map-support": "^0.5.6",
"style-loader": "^0.21.0",
"tcomb": "^3.2.15",
"urijs": "^1.18.12",
"url-loader": "^1.0.1",
"uuid-js": "^0.7.5",
"viewport-units-buggyfill": "^0.6.2",
"webpack": "^4.26.0",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.10"
},
"devDependencies": {
  "@babel/plugin-syntax-decorators": "^7.1.0",
  "babel-eslint": "^6.1.2",
  "cross-env": "^3.1.3",
  "eslint": "^3.2.2",
  "eslint-loader": "^1.6.1",
  "eslint-plugin-react": "^4.1.0",
  "webpack-bundle-analyzer": "^3.0.3",
  "xmlhttprequest": "^1.8.0"
},

0 个答案:

没有答案