We are using Atlassian date picker from @atlaskit/datetime-picker of version “12.7.11”.
We are using the same version from longer time, but the error is occurring from yesterday, as if we click on the date picker to select a date, then blank page occurs and following error can be seen in the console.
Uncaught ReferenceError: React is not defined
at Calendar (calendar.js:243:1)
at renderWithHooks (react-dom.development.js:14803:1)
at updateForwardRef (react-dom.development.js:16816:1)
at beginWork (react-dom.development.js:18645:1)
at HTMLUnknownElement.callCallback (react-dom.development.js:188:1)
at Object.invokeGuardedCallbackDev (react-dom.development.js:237:1)
at invokeGuardedCallback (react-dom.development.js:292:1)
at beginWork$1 (react-dom.development.js:23203:1)
at performUnitOfWork (react-dom.development.js:22154:1)
at workLoopSync (react-dom.development.js:22130:1)
at performSyncWorkOnRoot (react-dom.development.js:21756:1)
at react-dom.development.js:11089:1
at unstable_runWithPriority (scheduler.development.js:653:1)
at runWithPriority$1 (react-dom.development.js:11039:1)
at flushSyncCallbackQueueImpl (react-dom.development.js:11084:1)
at flushSyncCallbackQueue (react-dom.development.js:11072:1)
at discreteUpdates$1 (react-dom.development.js:21893:1)
at discreteUpdates (react-dom.development.js:806:1)
at dispatchDiscreteEvent (react-dom.development.js:4168:1)
the calendar.js in the above error refers to the path: @atlaskit/datetime-picker/node_modules/@atlaskit/calendar/dist/esm/calendar.js
We have tried reinstalling all the packages, tried to upgrade the package version to the latest but it didn’t helped.
We have included following packages in our project:
"dependencies": {
"@atlaskit/avatar": "^21.3.9",
"@atlaskit/avatar-group": "^9.1.1",
"@atlaskit/badge": "^15.1.14",
"@atlaskit/banner": "^11.1.0",
"@atlaskit/blanket": "^11.1.1",
"@atlaskit/button": "^16.9.1",
"@atlaskit/calendar": "10.3.2",
"@atlaskit/checkbox": "^12.6.10",
"@atlaskit/comment": "^10.8.17",
"@atlaskit/css-reset": "^6.0.5",
"@atlaskit/datetime-picker": "^12.7.11",
"@atlaskit/drawer": "^7.5.4",
"@atlaskit/dropdown-menu": "^11.11.6",
"@atlaskit/dynamic-table": "^14.11.5",
"@atlaskit/editor-core": "^123.0.0",
"@atlaskit/empty-state": "^7.1.5",
"@atlaskit/field-base": "^15.2.4",
"@atlaskit/field-radio-group": "^8.0.7",
"@atlaskit/field-text-area": "^8.0.5",
"@atlaskit/flag": "^15.2.17",
"@atlaskit/form": "^8.6.0",
"@atlaskit/icon": "^21.12.7",
"@atlaskit/icon-file-type": "^6.2.0",
"@atlaskit/inline-dialog": "^13.0.10",
"@atlaskit/inline-edit": "^12.0.4",
"@atlaskit/layer-manager": "^9.0.4",
"@atlaskit/logo": "^13.1.1",
"@atlaskit/lozenge": "^11.4.3",
"@atlaskit/media-core": "^31.1.0",
"@atlaskit/mention": "^19.3.1",
"@atlaskit/modal-dialog": "^12.6.5",
"@atlaskit/side-navigation": "^2.0.1",
"@atlaskit/page": "^12.3.5",
"@atlaskit/page-header": "^10.4.4",
"@atlaskit/pagination": "^13.0.10",
"@atlaskit/panel": "^0.4.5",
"@atlaskit/radio": "^5.6.10",
"@atlaskit/reduced-ui-pack": "^13.1.0",
"@atlaskit/renderer": "^74.1.1",
"@atlaskit/section-message": "^6.4.11",
"@atlaskit/select": "^15.7.7",
"@atlaskit/smart-card": "^13.3.0",
"@atlaskit/spinner": "^15.5.4",
"@atlaskit/table-tree": "^9.6.3",
"@atlaskit/tabs": "^12.1.3",
"@atlaskit/tag": "^11.1.0",
"@atlaskit/textarea": "^4.7.7",
"@atlaskit/textfield": "^5.6.5",
"@atlaskit/theme": "^11.0.2",
"@atlaskit/toggle": "^12.6.11",
"@atlaskit/tokens": "^1.14.2",
"@atlaskit/tooltip": "^17.8.6",
"@babel/core": "7.17.5",
"@pmmmwh/react-refresh-webpack-plugin": "0.4.3",
"@svgr/webpack": "6.2.1",
"@typescript-eslint/eslint-plugin": "5.12.0",
"@typescript-eslint/parser": "5.12.0",
"adf-builder": "^3.3.0",
"array-move": "1.0.0",
"babel-eslint": "10.1.0",
"babel-jest": "27.5.1",
"babel-loader": "8.2.3",
"babel-plugin-named-asset-import": "0.3.8",
"babel-preset-react-app": "10.0.1",
"bfj": "^7.0.2",
"camelcase": "^6.1.0",
"case-sensitive-paths-webpack-plugin": "2.4.0",
"chart.js": "^2.7.3",
"chartjs-chart-matrix": "^0.1.3",
"css-loader": "5.2.7",
"dompurify": "^2.0.12",
"dotenv": "8.2.0",
"dotenv-expand": "5.1.0",
"eslint": "^8.9.0",
"eslint-config-react-app": "7.0.0",
"eslint-loader": "4.0.2",
"eslint-plugin-flowtype": "8.0.3",
"eslint-plugin-import": "2.25.4",
"eslint-plugin-jsx-a11y": "6.5.1",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "4.3.0",
"eslint-webpack-plugin": "3.1.1",
"file-loader": "6.2.0",
"form-serialize": "^0.7.2",
"fs-extra": "7.0.1",
"history": "^4.10.1",
"html-webpack-plugin": "4.5.2",
"html2canvas": "^1.0.0-alpha.12",
"i18n-react": "^0.6.4",
"identity-obj-proxy": "3.0.0",
"is-wsl": "^1.1.0",
"jest": "24.7.1",
"jest-environment-jsdom-fourteen": "0.1.0",
"jest-resolve": "24.7.1",
"jest-watch-typeahead": "0.3.0",
"jquery": "^3.3.1",
"json-loader": "0.5.7",
"mini-css-extract-plugin": "1.6.2",
"moment": "2.22.2",
"moment-timezone": "^0.5.26",
"node-esapi": "^0.0.1",
"object-assign": "4.1.1",
"optimize-css-assets-webpack-plugin": "5.0.8",
"pnp-webpack-plugin": "1.7.0",
"postcss-flexbugs-fixes": "4.1.0",
"postcss-loader": "3.0.0",
"postcss-normalize": "8.0.1",
"postcss-preset-env": "6.7.0",
"postcss-safe-parser": "5.0.2",
"promise": "8.0.1",
"prop-types": "^15.5.10",
"query-string": "^6.8.3",
"raf": "3.4.0",
"raw-loader": "4.0.2",
"react": "^16.8.6",
"react-app-polyfill": "^1.0.1",
"react-big-calendar": "0.19.1",
"react-calendar-icon": "^0.9.4",
"react-collapse": "^5.1.0",
"react-color": "^2.13.8",
"react-dev-utils": "11.0.4",
"react-dom": "^16.8.6",
"react-draggable": "^4.4.3",
"react-dropzone": "^8.0.4",
"react-flip-move": "^3.0.2",
"react-google-charts": "^3.0.15",
"react-intercom": "^1.0.15",
"react-intl": "^2.8.0",
"react-loadable": "^5.3.1",
"react-motion": "^0.5.2",
"react-multi-email": "^0.5.3",
"react-redux": "^5.0.7",
"react-refresh": "^0.8.3",
"react-router-dom": "^5.0.0",
"react-stars": "^2.2.5",
"react-table": "^7.8.0",
"redux": "^3.7.2",
"redux-form": "^7.2.0",
"redux-promise": "^0.5.3",
"resolve": "1.10.0",
"resolve-url-loader": "^3.1.2",
"rxjs": "^5.5.0",
"sass-loader": "12.6.0",
"semver": "7.3.2",
"string-format": "^0.5.0",
"style-loader": "1.3.0",
"styled-components": "^3.2",
"terser-webpack-plugin": "4.2.3",
"ts-pnp": "1.2.0",
"url-loader": "4.1.1",
"uuid": "^3.1.0",
"web-vitals": "^2.1.4",
"webpack": "4.46.0",
"webpack-dev-server": "3.11.3",
"webpack-manifest-plugin": "2.2.0",
"webpack-require-from": "^1.8.0",
"workbox-webpack-plugin": "5.1.4",
"xlsx": "^0.18.5",
"yaml-loader": "0.6.0"
},