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

Invalid next.config.js options detected #28

Closed
pangkhorn opened this issue Jul 16, 2022 · 2 comments
Closed

Invalid next.config.js options detected #28

pangkhorn opened this issue Jul 16, 2022 · 2 comments

Comments

@pangkhorn
Copy link

Warn - Invalid next.config.js options detected:
[ { "instancePath": "", "schemaPath": "#/additionalProperties", "keyword": "additionalProperties", "params": { "additionalProperty": "svgrOptions" }, "message": "must NOT have additional properties" } ]

Here is my config:
svgrOptions: { titleProp: false, icon: true, svgProps: { height: 'auto', }, },

@platypusrex
Copy link
Owner

Hi @Khon123. Honestly, it's a bit difficult to help without more detail here. Is this a warning or an error? Can you provide the entire contents of your next.config and package.json? It's definitely possible that something has changed with how the config properties are validated in new versions.

@platypusrex
Copy link
Owner

@Khon123 regression was introduced here -> vercel/next.js#38498. Warnings have been resolved for next-plugin-svgr here -> #29. Update to v1.1.2 and you should be good to go.

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

2 participants