We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 317425f commit 5026ee1Copy full SHA for 5026ee1
.changeset/rotten-chefs-eat.md
@@ -0,0 +1,5 @@
1
+---
2
+'@segment/analytics-next': patch
3
4
+
5
+Fix ambient import conflict bug
packages/browser/src/browser/standalone-analytics.ts
@@ -14,7 +14,7 @@ export interface AnalyticsStandalone extends Analytics {
14
15
declare global {
16
interface Window {
17
- analytics: AnalyticsStandalone
+ analytics: AnalyticsSnippet
18
}
19
20
@@ -67,5 +67,8 @@ export async function install(): Promise<void> {
67
return
68
69
70
- window.analytics = await AnalyticsBrowser.standalone(writeKey, options)
+ window.analytics = (await AnalyticsBrowser.standalone(
71
+ writeKey,
72
+ options
73
+ )) as AnalyticsSnippet
74
0 commit comments