Issue Summary
In the Next 15 app, the preloadedConnection in Jackson options is used to dynamically import the .js and .xml files. It throws this error in the runtime:
⨯ Error: Cannot find module as expression is too dynamic
at eval (.next/server/chunks/ssr/08b5e_@boxyhq_saml-jackson_dist_51858b..js:3144:35)
at eval (.next/server/chunks/ssr/08b5e@boxyhq_saml-jackson_dist_51858b._.js:3147:23) {
code: 'MODULE_NOT_FOUND',
digest: '3927310179'
Steps to Reproduce
- Create a Next15 app and initialise the Jackson with opts to contain the
preloadedConnections path.
Expected: It should import the file and create connections.
Proposed solution: Adding a new option in the jackson opts to take SAML/OIDC connections(in an array) could be helpful to avoid the overhead of dynamic imports.
Please let me know if this makes sense. I'd love to implement it.
Technical details
Issue Summary
In the Next 15 app, the
preloadedConnectionin Jackson options is used to dynamically import the.jsand.xmlfiles. It throws this error in the runtime:Steps to Reproduce
preloadedConnectionspath.Expected: It should import the file and create connections.
Proposed solution: Adding a new option in the jackson
optsto take SAML/OIDC connections(in an array) could be helpful to avoid the overhead of dynamic imports.Please let me know if this makes sense. I'd love to implement it.
Technical details