-
-
Notifications
You must be signed in to change notification settings - Fork 321
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
Remove pwa from withPWA return value #368
Remove pwa from withPWA return value #368
Conversation
In Next 12.2.3 a change was added saying that the `next.config.js` "must NOT have additional properties" and that the `pwa` property was considered as an additional property. Therefore, this commit deletes the `pwa` property from the calculated next config in the default exported function in index.js (aka the `withPWA` function). The returned next config therefore does not have the `pwa` field and the warning does not appear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you lint according to what was before and only adjust the removal of the PWA key? This gives everyone much more confort in reviewing this PR
I'm not sure exactly what you mean @olavoparno? Are you saying that the PR violates something from a linting rule? |
@DavidSint it is just that it seems you changed the indentation, didn't you? |
Oh, you had to create a new object, right? Sorry, I did not notice it. |
Thanks @olavoparno, so now it appears we have to wait for this workflow to be approved to run first |
Thanks for the pull request. I'm a bit behind obviously. |
This PR breaks the config, since the |
Same here. I just started with the 5.5.5 version. |
Also having an issue. The |
This change make pwa from options.config is always {}. So, the plugin doesn't apply any config. |
In Next 12.2.3 a change was added saying that the
next.config.js
"must NOT have additional properties" and that thepwa
property was considered as an additional property. Therefore, this commit deletes thepwa
property from the calculated next config in the default exported function in index.js (aka thewithPWA
function). The returned next config therefore does not have thepwa
field and the warning does not appear.Resolves #367