Buckets:
| title: PostCSS Configuration Is a Function | |
| ## Why This Error Occurred | |
| The project's custom PostCSS configuration exports a function instead of an object. | |
| ## Possible Ways to Fix It | |
| Adjust the custom PostCSS configuration to not export a function. Instead, return a plain object. | |
| If you need environment information, read it from `process.env`. | |
| **Before** | |
| ```js filename="postcss.config.js" | |
| module.exports = ({ env }) => ({ | |
| plugins: { | |
| 'postcss-plugin': env === 'production' ? {} : false, | |
| }, | |
| }) | |
| ``` | |
| **After** | |
| ```js filename="postcss.config.js" | |
| module.exports = { | |
| plugins: { | |
| 'postcss-plugin': process.env.NODE_ENV === 'production' ? {} : false, | |
| }, | |
| } | |
| ``` | |
Xet Storage Details
- Size:
- 684 Bytes
- Xet hash:
- 52fe3e4339663bf8729bc7653869ccdc346c842d6a7353ae21d5532da54e7103
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.