Skip to content

Import oneLight error from react-syntax-highlighter/dist/esm/styles/prism #6

@gveni

Description

@gveni

Thanks for creating this great tool.
When I run "npm run dev" command, I get the following error

`[vite] (client) Pre-transform error: Failed to resolve import "react-syntax-highlighter/dist/esm/styles/prism" from "src/components/StreamingComponent.tsx". Does the file exist?
  Plugin: vite:import-analysis
  File: /_[root directory]/ui/src/components/StreamingComponent.tsx:5:25
  20 |  import remarkGfm from "remark-gfm";
  21 |  import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
  22 |  import { oneLight } from "react-syntax-highlighter/dist/esm/styles/prism";
     |                            ^
  23 |  const StreamingComponent = ({
  24 |    recapMessage,`

Please help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions