我无法弄清楚是什么原因导致了这个问题,但在这个我已经管理了好几年的UI中:
- 当我通过
start
本地运行react-scripts时,对代码进行更改时,应用程序会正确地重新编译。 - 任何代码更改都会被正确地重新编译并反映出来。
- UI冻结(无法点击下拉菜单、链接或输入任何文本),每次都必须重新加载页面。
- 我尝试在无插件的隐身模式下运行,但没有发生这种情况。
- 在其他具有类似设置的4个UI中,这种情况并不会发生。
简单的F5刷新页面,但是在更复杂的屏幕上,可能需要几秒钟才能设置好,这很烦人。这种情况只发生在一个UI中,而且我不确定如何找出是什么原因导致的。以下是我的package.json文件:
{
"name": "web",
"version": "0.1.0",
"private": true,
"dependencies": {
"@apollo/client": "^3.6.6",
"@blueprintjs/core": "^3.51.3",
"@blueprintjs/datetime": "^3.23.0",
"@blueprintjs/popover2": "^1.1.2",
"@blueprintjs/select": "^3.16.0",
"@fortawesome/fontawesome-svg-core": "^6.1.1",
"@fortawesome/free-regular-svg-icons": "^6.1.1",
"@fortawesome/free-solid-svg-icons": "^6.1.1",
"@fortawesome/react-fontawesome": "^0.1.18",
"@okta/okta-react": "^3.0.10",
"@testing-library/react": "^11.2.6",
"@types/file-saver": "^2.0.2",
"@types/flat": "^5.0.1",
"@types/humanize-duration": "^3.18.1",
"@types/jest": "26.0.23",
"@types/json2csv": "^5.0.1",
"@types/jwt-decode": "^2.2.1",
"@types/papaparse": "^5.2.5",
"@types/react": "17.0.34",
"@types/react-copy-to-clipboard": "^4.3.0",
"@types/react-dom": "17.0.3",
"@types/tableau": "^2.2.4",
"autoprefixer": "^10.2.5",
"axios": "^0.21.1",
"axios-hooks": "^2.6.1",
"date-fns": "^2.21.1",
"file-saver": "^2.0.2",
"flat": "^5.0.2",
"graphql": "^15.5.0",
"graphql-tag": "^2.11.0",
"graphql.macro": "^1.4.2",
"humanize-duration": "^3.25.2",
"json2csv": "^5.0.7",
"jwt-decode": "^3.0.0",
"npm-run-all": "^4.1.5",
"papaparse": "^5.3.0",
"postcss": "^8.2.13",
"prettier": "^2.6.2",
"progressbar.js": "^1.0.1",
"query-string": "^6.13.7",
"react": "17.0.2",
"react-copy-to-clipboard": "^5.0.4",
"react-dom": "17.0.2",
"react-dropzone": "^11.3.2",
"react-error-boundary": "^3.1.1",
"react-markdown": "^7.0.0",
"react-number-format": "^4.5.5",
"react-router": "^5.2.1",
"react-router-dom": "^5.3.0",
"react-scripts": "4.0.3",
"react-table": "^7.7.0",
"react-toastify": "^6.0.9",
"react-virtualized-auto-sizer": "^1.0.5",
"react-window": "^1.8.6",
"sb": "^6.2.9",
"tableau": "^0.0.3",
"tableau-api-js": "^2.8.1",
"tslint-etc": "^1.13.10",
"use-interval": "^1.3.0",
"use-query-params": "^1.2.2"
},
"scripts": {
"start": "react-scripts start",
"start-all": "concurrently --kill-others-on-fail \"yarn start\" \"yarn watch:tailwind\"",
"build": "react-scripts build",
"test": "tsc -p . && react-scripts test --watchAll=false --transformIgnorePatterns \"node_modules/(?!react-markdown)/\""
},
"devDependencies": {
"@graphql-codegen/cli": "^2.4.0",
"@graphql-codegen/introspection": "2.1.1",
"@graphql-codegen/typescript": "^2.4.2",
"@graphql-codegen/typescript-operations": "^2.2.3",
"@graphql-codegen/typescript-react-apollo": "3.2.4",
"@storybook/addon-actions": "^6.2.9",
"@storybook/addon-essentials": "^6.2.9",
"@storybook/addon-links": "^6.2.9",
"@storybook/addons": "^6.2.9",
"@storybook/node-logger": "^6.2.9",
"@storybook/preset-create-react-app": "^3.1.7",
"@storybook/react": "^6.2.9",
"@types/react-router-dom": "^5.3.1",
"@types/react-table": "^7.7.5",
"@types/react-test-renderer": "^17.0.1",
"@types/react-virtualized-auto-sizer": "^1.0.0",
"@types/react-window": "^1.8.2",
"@types/tableau": "^2.2.4",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"babel-loader": "8.1.0",
"create-react-app": "^4.0.3",
"eslint": "^7.25.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-react": "^7.23.2",
"eslint-plugin-react-hooks": "^4.2.0",
"graphql-tools": "^7.0.4",
"husky": "^6.0.0",
"maketypes": "^1.1.2",
"pretty-quick": "^3.1.0",
"prop-types": "^15.7.2",
"react-test-renderer": "^17.0.2",
"storybook-dark-mode": "^1.0.7",
"tailwindcss": "^3.1.6",
"typescript": "4.2.4"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
1条答案
按热度按时间2w3rbyxf1#
请检查您的浏览器控制台,错误应该在那里。