Error rendering component

Unknown plugin "module-resolver" specified in "base" at 0, attempted to resolve relative to "/home/circleci/wellcomecollection.org/common/views/components/Links/SecondaryLink"

// @flow
import NextLink from 'next/link';
import {font} from '../../../../utils/classnames';
import trackOutboundLink from '../../../../utils/track-outbound-link';

type Props = {|
  url: string,
  text: string,
  extraClasses?: string,
  eventTracking?: string
|}

const SecondaryLink = ({url, text, extraClasses, eventTracking}: Props) => {
  function handleClick(event) {
    trackOutboundLink(event.currentTarget.href);
  }

  return (
    <NextLink href={url}>
      <a
        data-track-event={eventTracking}
        onClick={handleClick}
        className={`secondary-link ${font({s: 'HNM5', m: 'HNM4'})} ${extraClasses || ''}`}>
        {text}
      </a>
    </NextLink>
  );
};

export default SecondaryLink;
{
  "url": "#",
  "text": "Opening hours"
}
  • Handle: @secondarylink
  • Preview:
  • Filesystem Path: ../common/views/components/Links/SecondaryLink/SecondaryLink.js

Standalone utility link. Uses text-decoration property for underline.