#Need help in datadog dd-trace setup
1 messages · Page 1 of 1 (latest)
I think this has to do with how dd-trace conditionally checks if libraries exist... marking it as external in some way might work, but I'm not sure if you have to mark dd-trace or graphql as external, e.g.:
vite.config.ts
export default defineConfig({
...
ssr: {
external: ['graphql'] // this might need to be graphql/language/visitor or dd-trace?
}
})
or maybe via optimize deps?
export default defineConfig({
...
optimizeDeps: {
exclude: ['graphql']
}
})
Similar issue in nextjs: https://github.com/vercel/next.js/pull/68785
GitHub
Unfortunately, dd-trace requires modules in some conditional fashion, as some of our users reported, which is the usual pattern for tracing packages. This PR works around this by marking the packag...