Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

str.match is not a function #115

Open
softmarshmallow opened this issue Nov 25, 2021 · 1 comment
Open

str.match is not a function #115

softmarshmallow opened this issue Nov 25, 2021 · 1 comment

Comments

@softmarshmallow
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants