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

v10 Next Broken with Image Components #22

Open
kmdev1 opened this issue Mar 23, 2021 · 0 comments
Open

v10 Next Broken with Image Components #22

kmdev1 opened this issue Mar 23, 2021 · 0 comments

Comments

@kmdev1
Copy link

kmdev1 commented Mar 23, 2021

Unfortunately this change:

Replaced

  • const parsedUrl = parse(url, true)
  • const { pathname, query } = parsedUrl
    With
  • const parsedUrl = new URL(url, url.indexOf('//') === -1 ? 'http://localhost' : undefined)
  • const { pathname, searchParams } = parsedUr

has broken next/image at present.

Currently next parsedURL uses the Legacy API and not the new spec. This means that query is undefined and will throw an error. Whilst it is the correct API to be using unfortunately Next isn't ready to support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant