You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've followed the manual setup, because I'm using nx. The only difference was the Next.js configuration file. I tried to setup Sentry using nx composePlugins, like this:
const{ composePlugins, withNx }=require('@nx/next');const{ withSentryConfig }=require('@sentry/nextjs');constsentryWebpackPluginOptions={/* my sentry configs */};constwithSentry=(config)=>withSentryConfig(config,sentryWebpackPluginOptions);constplugins=[withNx,withSentry];module.exports=composePlugins(...plugins)(nextConfig);
The plugin type, as expected by composePlugins, should implement this interface:
Generally, our SDK does not aim to be compatible with Nx's composePlugins since it is a made up composition API that has nothing to do with Next.js itself.
Is there an existing issue for this?
How do you use Sentry?
Self-hosted/on-premise
Which SDK are you using?
@sentry/nextjs
SDK Version
7.80.1
Framework Version
Nextjs 14.0.1, nx 17.0.3
Link to Sentry event
No response
SDK Setup
I've followed the manual setup, because I'm using nx. The only difference was the Next.js configuration file. I tried to setup Sentry using nx
composePlugins
, like this:The plugin type, as expected by
composePlugins
, should implement this interface:But
withSentryConfig
uses its own types, like ExportedNextConfig and NextConfigFunction, instead of NextConfig from Next.js.Steps to Reproduce
Apply the configs from
SDK Setup
above.Expected Result
It should work with the above config.
Actual Result
This type error:
The text was updated successfully, but these errors were encountered: