You signed in with another tab or wind
8000
ow. 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
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.
@gupta-piyush19 Thanks for reporting this, we will look into this and get back to you. An option to take in an array sounds good, please feel free to create a PR implementing this.
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:Steps to Reproduce
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
The text was updated successfully, but these errors were encountered: