✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
convert esm import to cjs
AykutSarac935901f87eed
diff --git a/src/containers/Home/index.tsx b/src/containers/Home/index.tsxindex e421ea6e..e1dc1512 100644--- a/src/containers/Home/index.tsx+++ b/src/containers/Home/index.tsx@@ -11,7 +11,7 @@ import {} from "react-icons/hi";import { IoHeart } from "react-icons/io5";import { SiVisualstudiocode } from "react-icons/si";-import vscDarkPlus from "react-syntax-highlighter/dist/esm/styles/prism/vsc-dark-plus";+import vscDarkPlus from "react-syntax-highlighter/dist/cjs/styles/prism/vsc-dark-plus";import { CarbonAds } from "src/components/CarbonAds";import { Footer } from "src/components/Footer";import { Producthunt } from "src/components/Producthunt";@@ -22,7 +22,7 @@ import { TABS } from "src/constants/previewSection";import { PricingCards } from "../PricingCards";import * as Styles from "./styles";-const SyntaxHighlighter = dynamic(() => import("react-syntax-highlighter/dist/esm/prism-async"), {+const SyntaxHighlighter = dynamic(() => import("react-syntax-highlighter/dist/cjs/prism-async"), {ssr: false,});diff --git a/src/containers/Modals/NodeModal/index.tsx b/src/containers/Modals/NodeModal/index.tsxindex 3baa7ed9..824069c8 100644--- a/src/containers/Modals/NodeModal/index.tsx+++ b/src/containers/Modals/NodeModal/index.tsx@@ -2,13 +2,13 @@ import React from "react";import dynamic from "next/dynamic";import toast from "react-hot-toast";import { FiCopy } from "react-icons/fi";-import vs from "react-syntax-highlighter/dist/esm/styles/prism/vs";-import vscDarkPlus from "react-syntax-highlighter/dist/esm/styles/prism/vsc-dark-plus";+import vs from "react-syntax-highlighter/dist/cjs/styles/prism/vs";+import vscDarkPlus from "react-syntax-highlighter/dist/cjs/styles/prism/vsc-dark-plus";import { Button } from "src/components/Button";import { Modal } from "src/components/Modal";import useStored from "src/store/useStored";-const SyntaxHighlighter = dynamic(() => import("react-syntax-highlighter/dist/esm/prism-async"), {+const SyntaxHighlighter = dynamic(() => import("react-syntax-highlighter/dist/cjs/prism-async"), {ssr: false,});diff --git a/src/pages/docs.tsx b/src/pages/docs.tsxindex 74aa862b..6f7599ff 100644--- a/src/pages/docs.tsx+++ b/src/pages/docs.tsx@@ -1,12 +1,12 @@import React from "react";import dynamic from "next/dynamic";import Head from "next/head";-import materialDark from "react-syntax-highlighter/dist/esm/styles/prism/material-dark";+import materialDark from "react-syntax-highlighter/dist/cjs/styles/prism/material-dark";import { Button } from "src/components/Button";import { Footer } from "src/components/Footer";import styled from "styled-components";-const SyntaxHighlighter = dynamic(() => import("react-syntax-highlighter/dist/esm/prism-async"), {+const SyntaxHighlighter = dynamic(() => import("react-syntax-highlighter/dist/cjs/prism-async"), {ssr: false,});