jstejada / react-typist

Typing animations with React
https://jstejada.github.io/react-typist/
Other
1.4k stars 124 forks source link

str.match is not a function #115

Open softmarshmallow opened 3 years ago

softmarshmallow commented 3 years ago

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>
  );
}
jstejada commented 3 years ago

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