Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Use .js import extensions to fix failing Vite imports

Blue Mouse7b894c8a96ca
diff --git a/src/Lib.ts b/src/Lib.ts
index 61c507d19..da4b186d0 100644
--- a/src/Lib.ts
+++ b/src/Lib.ts
@@ -11,7 +11,7 @@ import {
getUTMTerm,
getUTMContent,
getPath,
-} from './utils'
+} from './utils.js'
export interface LibOptions {
/**
diff --git a/src/index.ts b/src/index.ts
index ac02b0758..5c889eff5 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -9,7 +9,7 @@ import {
defaultActions,
IErrorEventPayload,
IPageViewPayload,
-} from './Lib'
+} from './Lib.js'
export let LIB_INSTANCE: Lib | null = null