Error with boxyhq/saml-jackson plugin when using Webpack NextModuleFederation Plugin #3186
-
Hello Team, Need your suggestions here on the below issue, kindly help to resolve these issues. I’m encountering an error when using the boxyhq/saml-jackson plugin in conjunction with the Webpack NextModuleFederation Plugin in my project. The error message is as follows: error connecting to engine: sql, type: postgres db: TypeError: Native is not a constructor Steps to Reproduce: Expected Behavior: Actual Behavior: error connecting to engine: sql, type: postgres db: TypeError: Native is not a constructor. Without webpack and next modulefederation plugin the apps works fine with boxyhq integration. Environment: Node.js version: 20.15.0 Sample next.config.mjs for the webpack and module federation configuration. import nextTranslate from 'next-translate';
}); export default config; |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
My best guess is that some modules are being removed (as webpack thinks it's unused). Could you try adding the following lines to the server code in your app and see if it helps:-
If that works we can look to add that into our code. |
Beta Was this translation helpful? Give feedback.
@KiranManohar1990 Alternatively, you can do away with the preloading of the SSO connection, you can later add it by calling the library methods