createCloudinaryURL breaks SSR
@atdcloud is already working on this.
Since May 28, 2023.
Assessment
This issue has not been assessed yet.
Description
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
- Dominant language
- HTML
- Stars
- 56
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudinary/js-url-gen
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
cloudinary/js-url-gen#608 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
cloudinary/js-url-gen#606 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
cloudinary/js-url-gen#600 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
cloudinary/js-url-gen#588 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
cloudinary/js-url-gen#587 · 4 comments ·