genetic-orange
genetic-orangeβ€’2y ago

Invalid Next configuration with latest refine Next generated app

Why I have this error when I launch the refine project just after the generation from "npm create refine-app@latest myapp" ?
No description
9 Replies
unwilling-turquoise
unwilling-turquoiseβ€’2y ago
Hey @krysalist sorry for the trouble. Looks like the next-compose-plugins package has some issues with the latest Next.js and its next.config.js file. We'll resolve this warning as soon as possible by replacing the package πŸ€” For you to get rid of the warning, you can try removing the next-compose-plugins πŸ™
genetic-orange
genetic-orangeβ€’2y ago
Hello @aliemirs ok, thanks for this details and the future patch πŸ™‚ So, how I can use a plugin, like i18n ?
genetic-orange
genetic-orangeβ€’2y ago
GitHub
Incompatible with next.js 12.2.0: "Invalid next.config.js options d...
When compiling with next.js 12.2.0, this warning is shown, even when an empty array is passed for the plugins parameter: warn - Invalid next.config.js options detected: [ { "instancePath&a...
genetic-orange
genetic-orangeβ€’2y ago
I can't test Refine for my admin panel :/ I need Next
unwilling-turquoise
unwilling-turquoiseβ€’2y ago
Can you show me your next.config.js file?
genetic-orange
genetic-orangeβ€’2y ago
const withPlugins = require("next-compose-plugins");
const { i18n } = require("./next-i18next.config");

module.exports = withPlugins([], {
i18n,
experimental: {
newNextLinkBehavior: true,
},
});
const withPlugins = require("next-compose-plugins");
const { i18n } = require("./next-i18next.config");

module.exports = withPlugins([], {
i18n,
experimental: {
newNextLinkBehavior: true,
},
});
unwilling-turquoise
unwilling-turquoiseβ€’2y ago
Yeah, just update this to;
const { i18n } = require("./next-i18next.config");

module.exports = {
i18n,
experimental: {
newNextLinkBehavior: true,
},
};
const { i18n } = require("./next-i18next.config");

module.exports = {
i18n,
experimental: {
newNextLinkBehavior: true,
},
};
i18n doesn't need a plugin anyways 🀣
genetic-orange
genetic-orangeβ€’2y ago
working πŸ™‚ thx
unwilling-turquoise
unwilling-turquoiseβ€’2y ago
I'll update the starter file today btw