This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web LPS-97091-frontend-sf-cleaned | |
➜ yarn test_DISABLED | |
FAIL test/js/components/add_result/Pagination.es.js | |
● Console | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/Pagination.es.js:18:23) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/Pagination.es.js:18:23) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in li | |
in ul | |
in Pagination | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in li | |
in ul | |
in Pagination | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/Pagination.es.js:28:23) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/Pagination.es.js:28:23) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in li | |
in ul | |
in Pagination | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in li | |
in ul | |
in Pagination | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/Pagination.es.js:38:34) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/Pagination.es.js:38:34) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in li | |
in ul | |
in Pagination | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in li | |
in ul | |
in Pagination | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/Pagination.es.js:48:28) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/Pagination.es.js:48:28) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in li | |
in ul | |
in Pagination | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in li | |
in ul | |
in Pagination | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/Pagination.es.js:56:25) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/Pagination.es.js:56:25) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in li | |
in ul | |
in Pagination | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in li | |
in ul | |
in Pagination | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/Pagination.es.js:66:23) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/Pagination.es.js:66:23) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in li | |
in ul | |
in Pagination | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in li | |
in ul | |
in Pagination | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
● Pagination › has a disabled previous arrow on first page | |
Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
16 | describe('Pagination', () => { | |
17 | it('has a disabled previous arrow on first page', () => { | |
> 18 | const {container} = render( | |
| ^ | |
19 | <Pagination href="" onChange={jest.fn()} page={1} total={7} /> | |
20 | ); | |
21 | | |
at node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (../../../node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (../../../node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (../../../node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (../../../node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (../../../node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at renderRoot (../../../node_modules/react-dom/cjs/react-dom.development.js:19435:7) | |
at performWorkOnRoot (../../../node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (../../../node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (../../../node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (../../../node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (../../../node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (../../../node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (../../../node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at ../../../node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (../../../node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (../../../node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (../../../node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at ../../../node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (../../../node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (../../../node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (../../../node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (test/js/components/add_result/Pagination.es.js:18:23) | |
● Pagination › has a disabled next arrow on last page | |
Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
26 | | |
27 | it('has a disabled next arrow on last page', () => { | |
> 28 | const {container} = render( | |
| ^ | |
29 | <Pagination href="" onChange={jest.fn()} page={7} total={7} /> | |
30 | ); | |
31 | | |
at node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (../../../node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (../../../node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (../../../node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (../../../node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (../../../node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at renderRoot (../../../node_modules/react-dom/cjs/react-dom.development.js:19435:7) | |
at performWorkOnRoot (../../../node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (../../../node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (../../../node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (../../../node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (../../../node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (../../../node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (../../../node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at ../../../node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (../../../node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (../../../node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (../../../node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at ../../../node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (../../../node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (../../../node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (../../../node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (test/js/components/add_result/Pagination.es.js:28:23) | |
● Pagination › shows the pagination dropdown menu when clicked on ellipses | |
Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
36 | | |
37 | it('shows the pagination dropdown menu when clicked on ellipses', () => { | |
> 38 | const {container, getByText} = render( | |
| ^ | |
39 | <Pagination href="" onChange={jest.fn()} page={1} total={5} /> | |
40 | ); | |
41 | | |
at node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (../../../node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (../../../node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (../../../node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (../../../node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (../../../node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at renderRoot (../../../node_modules/react-dom/cjs/react-dom.development.js:19435:7) | |
at performWorkOnRoot (../../../node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (../../../node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (../../../node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (../../../node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (../../../node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (../../../node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (../../../node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at ../../../node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (../../../node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (../../../node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (../../../node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at ../../../node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (../../../node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (../../../node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (../../../node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (test/js/components/add_result/Pagination.es.js:38:34) | |
● Pagination › has two ellipses buttons when on certain pages | |
Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
46 | | |
47 | it('has two ellipses buttons when on certain pages', () => { | |
> 48 | const {queryAllByText} = render( | |
| ^ | |
49 | <Pagination href="" onChange={jest.fn()} page={5} total={10} /> | |
50 | ); | |
51 | | |
at node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (../../../node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (../../../node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (../../../node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (../../../node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (../../../node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at renderRoot (../../../node_modules/react-dom/cjs/react-dom.development.js:19435:7) | |
at performWorkOnRoot (../../../node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (../../../node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (../../../node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (../../../node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (../../../node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (../../../node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (../../../node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at ../../../node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (../../../node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (../../../node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (../../../node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at ../../../node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (../../../node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (../../../node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (../../../node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (test/js/components/add_result/Pagination.es.js:48:28) | |
● Pagination › shows no ellipses button when on certain pages | |
Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
54 | | |
55 | it('shows no ellipses button when on certain pages', () => { | |
> 56 | const {queryByText} = render( | |
| ^ | |
57 | <Pagination href="" onChange={jest.fn()} page={3} total={5} /> | |
58 | ); | |
59 | | |
at node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (../../../node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (../../../node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (../../../node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (../../../node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (../../../node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at renderRoot (../../../node_modules/react-dom/cjs/react-dom.development.js:19435:7) | |
at performWorkOnRoot (../../../node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (../../../node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (../../../node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (../../../node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (../../../node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (../../../node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (../../../node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at ../../../node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (../../../node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (../../../node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (../../../node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at ../../../node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (../../../node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (../../../node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (../../../node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (test/js/components/add_result/Pagination.es.js:56:25) | |
● Pagination › calls function onChange when new page is clicked on | |
Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
64 | const onChange = jest.fn(); | |
65 | | |
> 66 | const {getByText} = render( | |
| ^ | |
67 | <Pagination href="" onChange={onChange} page={3} total={5} /> | |
68 | ); | |
69 | | |
at node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (../../../node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (../../../node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (../../../node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (../../../node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (../../../node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at renderRoot (../../../node_modules/react-dom/cjs/react-dom.development.js:19435:7) | |
at performWorkOnRoot (../../../node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (../../../node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (../../../node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (../../../node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (../../../node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (../../../node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (../../../node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at ../../../node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (../../../node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (../../../node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (../../../node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at ../../../node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (../../../node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (../../../node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (../../../node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (test/js/components/add_result/Pagination.es.js:66:23) | |
FAIL test/js/components/add_result/PaginationBar.es.js | |
● Console | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/PaginationBar.es.js:23:25) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/PaginationBar.es.js:23:25) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/PaginationBar.es.js:23:25) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in div | |
in div | |
in PaginationBar | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in li | |
in ul | |
in Pagination | |
in div | |
in PaginationBar | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in li | |
in ul | |
in Pagination | |
in div | |
in PaginationBar | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/PaginationBar.es.js:48:38) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/PaginationBar.es.js:48:38) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/PaginationBar.es.js:48:38) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in div | |
in div | |
in PaginationBar | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in li | |
in ul | |
in Pagination | |
in div | |
in PaginationBar | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in li | |
in ul | |
in Pagination | |
in div | |
in PaginationBar | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/PaginationBar.es.js:66:38) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/PaginationBar.es.js:66:38) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/PaginationBar.es.js:66:38) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in div | |
in div | |
in PaginationBar | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in li | |
in ul | |
in Pagination | |
in div | |
in PaginationBar | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in li | |
in ul | |
in Pagination | |
in div | |
in PaginationBar | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/PaginationBar.es.js:84:25) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/PaginationBar.es.js:84:25) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/PaginationBar.es.js:84:25) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in div | |
in div | |
in PaginationBar | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in li | |
in ul | |
in Pagination | |
in div | |
in PaginationBar | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in li | |
in ul | |
in Pagination | |
in div | |
in PaginationBar | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/PaginationBar.es.js:99:36) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/PaginationBar.es.js:99:36) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/PaginationBar.es.js:99:36) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in div | |
in div | |
in PaginationBar | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in li | |
in ul | |
in Pagination | |
in div | |
in PaginationBar | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/react-dom/cjs/react-dom.development.js:17117 | |
The above error occurred in the <ClayIcon> component: | |
in ClayIcon | |
in a | |
in li | |
in ul | |
in Pagination | |
in div | |
in PaginationBar | |
Consider adding an error boundary to your tree to customize error handling behavior. | |
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1533:26 | |
at resolveDispatcher (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1536:5) | |
at useContext (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/react/cjs/react.development.js:1541:20) | |
at ClayIcon (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/node_modules/@clayui/icon/lib/index.js:34:44) | |
at renderWithHooks (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:12938:18) | |
at mountIndeterminateComponent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15020:13) | |
at beginWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:15625:16) | |
at performUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19312:12) | |
at workLoop (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19352:24) | |
at HTMLUnknownElement.callCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:149:14) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) | |
at performWorkOnRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20342:7) | |
at requestWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20090:7) | |
at scheduleWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19911:5) | |
at scheduleRootUpdate (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20572:3) | |
at updateContainerAtExpirationTime (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20600:10) | |
at updateContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20657:10) | |
at ReactRoot.Object.<anonymous>.ReactRoot.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20953:3) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21090:14 | |
at unbatchedUpdates (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20454:14) | |
at legacyRenderSubtreeIntoContainer (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21086:5) | |
at Object.render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:21155:12) | |
at /Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:86:25 | |
at Object.batchedUpdates$1 [as unstable_batchedUpdates] (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:20439:12) | |
at act (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1161:27) | |
at render (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/@testing-library/react/dist/index.js:82:26) | |
at Object.it (/Users/ktan/Liferay/master-private/portal-ee/modules/private/apps/portal-search-tuning/portal-search-ranking-web/test/js/components/add_result/PaginationBar.es.js:120:25) | |
at Object.asyncJestTest (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) | |
at resolve (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:43:12) | |
at new Promise (<anonymous>) | |
at mapper (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:26:19) | |
at promise.then (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jest-jasmine2/build/queueRunner.js:73:41) | |
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation' } | |
console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
Error: Uncaught [Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.] | |
at reportException (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24) | |
at invokeEventListeners (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9) | |
at HTMLUnknownElementImpl._dispatch (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) | |
at HTMLUnknownElementImpl.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) | |
at HTMLUnknownElement.dispatchEvent (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) | |
at Object.invokeGuardedCallbackDev (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:199:16) | |
at invokeGuardedCallback (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:256:31) | |
at replayUnitOfWork (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:18578:5) | |
at renderRoot (/Users/ktan/Liferay/master-private/portal-ee/modules/private/node_modules/react-dom/cjs/react-dom.development.js:19468:13) { Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at /Users |