Issues related to next-css in next 9.3.6 version #12388
Replies: 2 comments
-
Hello team Creating an optimized production build Failed to compile. ./node_modules/@fortawesome/fontawesome-free/css/all.min.css
|
Beta Was this translation helpful? Give feedback.
-
Hey I am running into the same issue as well and was wondering if anyone had found a solution/work-around for this issue yet? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
As i update next version for 9.3.6, Compiler starts warning to remove the " const withCSS = require('@zeit/next-css')" globally and to import all css at app.js. After removing, i start getting issues in my production build. There are two css loading instead of one minified and this is creating some issues related to designs in anchor's, font Family and background colors. here is my next.config.js file :
const withFonts = require('next-fonts');
const withImages = require('next-images');
// const withCSS = require('@zeit/next-css')
const withPlugins = require('next-compose-plugins');
const nextEnv = require('next-env');
const dotenvLoad = require('dotenv-load');
dotenvLoad();
withFonts({
webpack(config, options) {
// config.plugins.push(new webpack.EnvironmentPlugin(localEnv))
return config;
}
})
module.exports = withPlugins([
nextEnv({
staticPrefix: 'CUSTOM_STATIC_',
publicPrefix: 'CUSTOM_PUBLIC_',
}),withFonts, withImages
]);
Additional context
Beta Was this translation helpful? Give feedback.
All reactions