OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
fix: dashboard issues
Carl-Gerhard Lindesvärde4a6a54fe9eb
diff --git a/apps/start/src/components/syntax.tsx b/apps/start/src/components/syntax.tsxindex e24f91f88..4d1e14c1f 100644--- a/apps/start/src/components/syntax.tsx+++ b/apps/start/src/components/syntax.tsx@@ -1,10 +1,10 @@import { CopyIcon } from 'lucide-react';import { Light as SyntaxHighlighter } from 'react-syntax-highlighter';-import bash from 'react-syntax-highlighter/dist/cjs/languages/hljs/bash';-import json from 'react-syntax-highlighter/dist/cjs/languages/hljs/json';-import markdown from 'react-syntax-highlighter/dist/cjs/languages/hljs/markdown';-import ts from 'react-syntax-highlighter/dist/cjs/languages/hljs/typescript';-import docco from 'react-syntax-highlighter/dist/cjs/styles/hljs/vs2015';+import bash from 'react-syntax-highlighter/dist/esm/languages/hljs/bash';+import json from 'react-syntax-highlighter/dist/esm/languages/hljs/json';+import markdown from 'react-syntax-highlighter/dist/esm/languages/hljs/markdown';+import ts from 'react-syntax-highlighter/dist/esm/languages/hljs/typescript';+import docco from 'react-syntax-highlighter/dist/esm/styles/hljs/vs2015';import { clipboard } from '@/utils/clipboard';import { cn } from '@/utils/cn';diff --git a/apps/start/vite.config.ts b/apps/start/vite.config.tsindex 3b0bc073a..9d99e412b 100644--- a/apps/start/vite.config.ts+++ b/apps/start/vite.config.ts@@ -29,6 +29,9 @@ if (process.env.NITRO) {const config = defineConfig({plugins,+ ssr: {+ noExternal: ['react-syntax-highlighter', 'lowlight', 'highlight.js'],+ },});export default wrapVinxiConfigWithSentry(config, {