-
Notifications
You must be signed in to change notification settings - Fork 645
Closed
Description
code example:
import Link from "@primer/components/src/Link";
import React from "react";
interface ExternalLinkProps {
src: string;
text: string;
newTab?: boolean;
}
export const ExternalLink = (props: ExternalLinkProps) => {
const target: string = props.newTab ? `_blank` : `_self`;
const rel: string | undefined = props.newTab
? `noreferrer noopener`
: undefined;
return (
<Link href={props.src} target={target} rel={rel}/>
);
};
While trying to run npm start in console, it won't render, but show the following error:
Module not found: Can't resolve './utils/elementType' in '{my path}/node_modules/@primer/components/src'
Metadata
Metadata
Assignees
Labels
No labels