Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

fix: correctly resolve the package version (#8016)

Guillaume Grossetie79257a1923a0
diff --git a/packages/excalidraw/scene/export.ts b/packages/excalidraw/scene/export.ts
index c00a8968fa..ab51bad8c0 100644
--- a/packages/excalidraw/scene/export.ts
+++ b/packages/excalidraw/scene/export.ts
@@ -339,7 +339,7 @@ export const exportToSvg = async (
assetPath =
window.EXCALIDRAW_ASSET_PATH ||
`https://unpkg.com/${import.meta.env.VITE_PKG_NAME}@${
- import.meta.env.PKG_VERSION
+ import.meta.env.VITE_PKG_VERSION
}`;
if (assetPath?.startsWith("/")) {