-
Notifications
You must be signed in to change notification settings - Fork 27k
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
[NEXT-1095] ReadonlyURLSearchParams no longer includes size
as a property
#49245
Comments
size
as a propertysize
as a property
small workaround I'm using for now
|
that workaround makes me cringe :-P i use it in too many diff routes so at least need to colocate, but err its type-only. I just defined a new hook for now with same name that fixes it so i dont do a bunch of needless runtime conversions but yeah this breaks pretty much any app using
|
I raised an issue, maybe the same with this one. |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
TypeScript (plugin, built-in types)
Link to the code that reproduces this issue
#41868 (comment)
To Reproduce
Trying to access the
size
property ofReadonlyURLSearchParams
or passing theReadonlyURLSearchParams
to a function which requires URLSearchParams fails the typescript compiler.In any component used by an app with
/pages
:Describe the Bug
Typescript compiler fails in Next.js v
13.4.0
where it didn't fail in v13.2.3
Trying to access thesize
property ofReadonlyURLSearchParams
Expected Behavior
size
is a property onReadonlyURLSearchParams
in order to compile my typescript appWhich browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
NEXT-1095
The text was updated successfully, but these errors were encountered: