Skip to content

Custom polyfills #20992

Answered by leerob
Nick-Mazuk asked this question in Help
Jan 12, 2021 · 4 comments · 26 replies
Discussion options

You must be logged in to vote

Good catch — this isn't very clear right now. You should add a top-level import for the specific polyfill you need in your Custom <App> or the individual component. Example:

import 'resize-observer-polyfill'

function MyApp({ Component, pageProps }) {
  return <Component {...pageProps} />
}

export default MyApp

I will update the example 👍

Replies: 4 comments 26 replies

Comment options

You must be logged in to vote
11 replies
@paul-vd
Comment options

@tettoffensive
Comment options

@wereHamster
Comment options

@charkour
Comment options

@disjukr
Comment options

Answer selected by leerob
Comment options

You must be logged in to vote
8 replies
@AjaxTheOne
Comment options

@TracerLee
Comment options

@plrthink
Comment options

@carlos-dubon
Comment options

@secure12
Comment options

Comment options

You must be logged in to vote
1 reply
@OptimisticQuan
Comment options

Comment options

You must be logged in to vote
6 replies
@ArnabChatterjee20k
Comment options

@RaenonX
Comment options

@ArnabChatterjee20k
Comment options

@ArnabChatterjee20k
Comment options

@fireMan-34
Comment options

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