You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updating to version 14.3.0 and above causes the error
What happened:
ERR! /vercel/path0/node_modules/@testing-library/react/dist/act-compat.js 13:28
ERR! Module parse failed: Unexpected token (13:28)
ERR! You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
ERR! | function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
ERR! | function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
ERR! > const reactAct = React.act ?? DeprecatedReactTestUtils.act;
ERR! | function getGlobalThis() {
ERR! | /* istanbul ignore else */
ERR! @ /vercel/path0/node_modules/@testing-library/react/dist/pure.js 58:41-64
ERR! @ /vercel/path0/node_modules/@testing-library/react/pure.js
Problem description:
Updating @testing-library/react to version 14.3.0 and above causes the error and fails the storybook build
The text was updated successfully, but these errors were encountered:
@testing-library/react
version: 14.3.0 and abovejest
: ^29.7.0jest-environment-jsdom
: ^29.7.0node
: v18.17.0react
: ^18.2.0@storybook/react
: "^6.4.19",What you did:
Updating to version 14.3.0 and above causes the error
What happened:
Problem description:
Updating @testing-library/react to version 14.3.0 and above causes the error and fails the storybook build
The text was updated successfully, but these errors were encountered: