-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module not found in Next13 #837
Comments
Hi. Can you show your code? What module are you trying to import? |
Sorry, dunno why I didn't include it to begin with. // segment.ts
import { AnalyticsBrowser } from '@segment/analytics-next'
import 'client-only'
const segment = AnalyticsBrowser.load({
writeKey: process.env.NEXT_PUBLIC_SEGMENT_WRITE_KEY as string,
})
export default segment // Segment.tsx
'use client'
import '@/utils/segment'
export default function Segment() {
return null
} |
Thanks. Haven't had time to look into this yet, but FYI: all node stuff is getting deleted from this package in around a month, maybe sooner. Pretty sure that will fix the issue. |
Has this been fixed @silesky? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Node v18.12.1
Next v13.3.0
pnpm v 8.1.1
segment.ts is poisoned with
client-only
Segment.tsx is a client component
The text was updated successfully, but these errors were encountered: