Unable to consume atlaskit in React 18

Upon compiling my react 18 app with a number of the atlaskit components the following error is thrown:

node_modules/.pnpm/@atlaskit+tooltip@17.5.10_ohobp6rpsmerwlq5ipwfh5yigy/node_modules/@atlaskit/tooltip/dist/esm/Tooltip.js: pragma and pragmaFrag cannot be set when runtime is automatic.

  1 | import _extends from "@babel/runtime/helpers/extends";
    | ^
  2 | import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
  3 | import _defineProperty from "@babel/runtime/helpers/defineProperty";

Any workarounds would be much appreciated, thanks.

3 Likes