10000 `preLoadedConnection` throws error in next 15 app · Issue #3644 · ory/polis · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

preLoadedConnection throws error in next 15 app #3644

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gupta-piyush19 opened this issue Feb 24, 2025 · 1 comment
Open

preLoadedConnection throws error in next 15 app #3644

gupta-piyush19 opened this issue Feb 24, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@gupta-piyush19
Copy link

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

  1. 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

@gupta-piyush19 gupta-piyush19 added the bug Something isn't working label Feb 24, 2025
@deepakprabhakara
Copy link
Collaborator

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
0