react-typist icon indicating copy to clipboard operation
react-typist copied to clipboard

str.match is not a function

Open softmarshmallow opened this issue 4 years ago • 1 comments

image

import React from "react";
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
import { vscDarkPlus as colorscheme } from "react-syntax-highlighter/dist/cjs/styles/prism";
import Typist from "react-typist";

export function SrcContent({
  children,
  language,
}: {
  language: string;
  children: React.ReactNode;
}) {
  return (
    <SyntaxHighlighter language={language} style={colorscheme}>
      <Typist>{children}</Typist>
    </SyntaxHighlighter>
  );
}

softmarshmallow avatar Nov 25 '21 16:11 softmarshmallow

is this error being thrown from within typist? i can't tell from the error stack

jstejada avatar Nov 28 '21 17:11 jstejada