agreeable-train-79582
03/06/2025, 3:11 AMthirdPartyTrackingPlugin, as documented here: GrowthBook Third Party Tracking.
I’m currently troubleshooting an issue where I am unable to install the <@U052WVA1MH6>/growthbook/plugins module necessary for the plugin. Despite following the documentation, I’ve encountered difficulties with the import process and can't seem to resolve the issue.
Has anyone experienced this, or can anyone provide guidance on how to successfully import and use the thirdPartyTrackingPlugin?
Thank you for your help! 🙏fresh-football-47124
fresh-football-47124
agreeable-train-79582
03/06/2025, 4:44 AMagreeable-train-79582
03/06/2025, 4:45 AM@growthbook/growthbook moduleagreeable-train-79582
03/06/2025, 4:45 AMfresh-football-47124
agreeable-train-79582
03/06/2025, 4:45 AMagreeable-train-79582
03/06/2025, 4:47 AMfresh-football-47124
fresh-football-47124
agreeable-train-79582
03/06/2025, 4:47 AMCannot find module '@growthbook/growthbook/plugins' or its corresponding type declarations.agreeable-train-79582
03/06/2025, 4:47 AMfresh-football-47124
npm list --depth=0 |grep growthbookfresh-football-47124
agreeable-train-79582
03/06/2025, 4:50 AMfresh-football-47124
fresh-football-47124
agreeable-train-79582
03/06/2025, 4:51 AMfresh-football-47124
fresh-football-47124
fresh-football-47124
agreeable-train-79582
03/06/2025, 5:00 AMfresh-football-47124
agreeable-train-79582
03/06/2025, 5:01 AMagreeable-train-79582
03/06/2025, 5:01 AMfresh-football-47124
agreeable-train-79582
03/06/2025, 5:01 AMfresh-football-47124
agreeable-train-79582
03/06/2025, 5:03 AMfresh-football-47124
agreeable-train-79582
03/06/2025, 5:04 AMfresh-football-47124
future-teacher-7046
target and moduleResolution set to in your tsconfig?
2. What bundler are you using? Webpack? Vite? Something else?
3. Are you using a framework like Next.js, Angular, Astro, etc. ? If so, what version?agreeable-train-79582
03/07/2025, 1:41 AMmoduleResolution config.
2. webpack
3. Next.js, 14.2.5square-eve-67382
04/15/2025, 8:42 PMfuture-teacher-7046
moduleResolution. The node setting is old and doesn't support newer style imports. node16 and nodenext are both newer values for this setting that should work.
Updating your moduleResolution might cause other issues in other parts of your code base. As a quick workaround, can you try importing from here instead? @growthbook/growthbook/dist/plugins/square-eve-67382
04/15/2025, 9:07 PMdist into the path doesn't help. Adjusting the moduleResolution isn't working yet either, but I might have to tinker more with the project setup (yeah, its a dated project)agreeable-train-79582
04/24/2025, 10:27 AMglobal.d.ts
declare module '@growthbook/growthbook/plugins';square-eve-67382
04/24/2025, 11:18 AM"import/no-unresolved": ["error", { "ignore": ["^@growthbook/growthbook/plugins$"] }]
Not great, but unblocks us in the short term.