You signed in with another tab or window. 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
I get Typescript error when I define the function passed into resolveUrl with Readonly<URL>.
Type'(url: Readonly<URL>) => Readonly<URL>'isnotassignabletotype'(url: URL, location: Location, type: ResolveUrlType) => URL | null | undefined'.Type 'Readonly<URL>' is not assignable to type 'URL'.Type 'Readonly<URL>' provides no match for the signature 'new(url: string|URL,base?: string|URL|undefined): URL'.
Describe the bug
I get Typescript error when I define the function passed into
resolveUrl
withReadonly<URL>
.Reproduction
https://github.com/NaucMeIT/web/blob/e5449239cbfd995dea9749055db6e376c8f28c5c/apps/legacy_nmit/pages/_document.tsx#L57
Steps to reproduce
@builder.io/party
into projectPartytown
React componentresolveUrl
function that hasurl: Readonly<URL>
Browser Info
Compile time
Additional Information
No response
The text was updated successfully, but these errors were encountered: