Skip to content
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

createCloudinaryURL breaks SSR #564

Open
robdixon-netc opened this issue Apr 27, 2023 · 3 comments
Open

createCloudinaryURL breaks SSR #564

robdixon-netc opened this issue Apr 27, 2023 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@robdixon-netc
Copy link

robdixon-netc commented Apr 27, 2023

Since when using version 1.10.0 we were seeing the following error when trying to use SSR:

JsRuntimeException: ReferenceError: URLSearchParams is not defined
at createCloudinaryURL (server.js:2:339702) -> …URI(i).replace(/\?/g,"%3F").replace(/=/g,"%3D"),n=new URLSearchParams(this.urlConfig.queryParams);!1…
at toURL (server.js:2:341974)
at Ld (server.js:2:349424)
at SplitContent (server.js:2:575857)
at i (server.js:2:28626)
at server.js:2:29644
at t.render (server.js:2:29677)
at t.read (server.js:2:27548)
at t.renderToString (server.js:2:34395)
at Script [4]:1:16

Reverting back to 1.9.2 resolves the issue

@dannyv-cloudinary
Copy link

Hi Rob. Danny from Cloudinary here.

Thanks for flagging this. Could you please tell us what framework you're using for SSR, as well as any versions that might be relevant? If you're able to create a sample repo that allows us to quickly reproduce this error, that would be helpful also.

Thanks!

@robdixon-netc
Copy link
Author

robdixon-netc commented Apr 27, 2023

Hi Danny,

Thanks for responding. It's using reactjs.net, the latest version.

Thanks,
Rob

@skalahasti-cloudinary
Copy link

Hi @robdixon-netc ,

Thanks for your response. I am unable to recreate the issue with 1.10.0 .

Can you please provide your code using codesandbox (https://codesandbox.io/)? If you cannot share your code here, please create a support ticket: https://support.cloudinary.com/hc/en-us

Best Regards,
Sree

@roeeba roeeba added the question Further information is requested label May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants