Closed coolbeatz71 closed 3 years ago
Do you have any idea on why I'm getting this error?
try yarn install --force
?
look missing less or less-loader?
I solved the problem. I think it's better to show the solution for anyone facing this type of issues when using next-compose-plugins
You should export all plugins alongside their config all inside the withPlugins()
function as follow:
module.exports = withPlugins([
[optimizedImages],
[
withPWA,
{
pwa: {
disable: !isProduction,
dest: "public",
register: true,
runtimeCaching,
},
},
],
[
withAntdLess,
{
lessVarsFilePath: "./theme/less/theme.less",
},
],
]);
Hey good people, I installed the version
"^0.3.0"
But I am getting this error when trying to build:
next.config.js
.babelrc