-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
You did not set any plugins, parser, or stringifier. Right now, PostCSS does nothing. #405
Comments
Because you do not have plugins for postcss-loader, it is error from postcss |
@trigun539 Rename |
@michael-ciniawsky Sorry the file actually is postcss.config.js. It is still not working. |
I have precss/autoprefixer/lost postcss plugins that should work. |
If you have the same problem, i've found an explication/solution here : |
any solution? i getting the same issue
|
I got a solution. i using a laravel mix. solution found here |
As an aside, I have discovered that despite a valid (webpack) postcss-loader configuration with plugins present, from what I can tell |
Is it possible to get more of a stack trace for this error? I'm getting it now but everything seems to be working correctly otherwise. I presume it's some other dependency somewhere in the tree. |
@wadtech I just dumped a couple of |
I was receiving this error on console even when my CSS was processed with no problems. In my case was due to |
I am trying to upgrade to Here's my updated loader config: loader: 'postcss-loader',
options: {
postcssOptions: {
plugins: [
['autoprefixer', {
overrideBrowserslist: targets,
}],
],
},
sourceMap: true,
},
} Any idea what could be causing this issue? |
@bensampaio Do you use monorepos? |
@evilebottnawi yes, I do. Is that the cause of the issue? |
@bensampaio some packages doesn't have |
@evilebottnawi I am putting it in the loader as I showed above: loader: 'postcss-loader',
options: {
postcssOptions: {
plugins: [
['autoprefixer', {
overrideBrowserslist: targets,
}],
],
},
sourceMap: true,
},
} I can't move this configuration to |
If I remove |
@bensampaio Please:
|
@evilebottnawi I did create a I will migrate to |
@bensampaio Please create reproducible test repo, I can't help without code |
@bensampaio did you solve the problem? I have exactly the same error! I also use |
@evilebottnawi I am trying to reproduce the issue in this repo: https://github.com/bensampaio/postcss-monorepo-issue. However, |
@bensampaio Because you run |
More information yarnpkg/yarn#7572 |
Thanks @alexander-akait , that helped me to make tailwindcss work in a monorepo. Probably, it should be stated in docs. |
@Bessonov feel free to send PR to docs |
@alexander-akait I don't feel like I have enough background information to put it into proper and precise wording. For example, it isn't clear for me why it works this way. I start the process from a sub-module and expect that the configuration in this sub-module should be enough. And how it's expected to work, if there are multiple frontend modules which requires different postcss configuration. |
it is due module hoist in monorepos and default cwd... |
I meet the same problem when I use autoprefixer plugin. I tried many solutions I've found by Google , none of they woked. But ironically, it's just beacuse I just wrote plugin rather plugins in postcss.config.js. |
Is there any way to disable this yet? I'm using next.js and the docs clearly state you can disable postcss during development https://nextjs.org/docs/advanced-features/customizing-postcss-config#customizing-plugins however if I do this, my terminal is flooded with warnings. |
This error message can also happen if your yarn config has changed and you haven't yet re-run yarn install - and it'll usually be paired with an unstyled CSS output from the otherwise functioning webpack server. yarn install (etc.) resolved for me. Specific scenario was I had made changes on one machine, pushed to production and pulled back from repo to another machine; hit 'guard' and got that message, and mostly unstyled output on localhost. |
In my case, changing the value of Before: module.exports = {
plugins: () => [
require('postcss-preset-env'),
require('cssnano'),
],
}; After: module.exports = {
plugins: [
require('postcss-preset-env'),
require('cssnano'),
],
}; Seems like people have different experience on this, I just want to share mine. |
try this: |
copy to package.json
more config checkout this link: https://evilmartians.com/chronicles/postcss-8-plugin-migration create postcss.config.js:
|
If you are on Nuxt.js and just want to remove the anoying warning, this will solve: |
I'm also having this problem on Nuxt.js, once I click on your link I back to this issue. Have you an idea which solution could I apply on Nuxt.js? |
in the nuxt.config.js file |
Have tried a bunch of configurations from the documentation but postcss-loader is not picking up the postcss plugins. I had the configuration working on webpack v3 using older versions of the libraries/plugins. Upgraded to webpack v4 and latest plugins versions and now postcss can't pickup the plugin configuration.
Details
Configuring postcss-loader with following plugins:
Error (Logs|Stacks)
You did not set any plugins, parser, or stringifier. Right now, PostCSS does nothing. Pick plugins for your case on https://www.postcss.parts/ and use them in postcss.config.js.
Reproduction (Code)
Please see:
https://gist.github.com/trigun539/2b8ebf739b64881ec0b3ea2a9e37ba92
Environment
OS: Windows
node: 8.15.0
npm: 6.4.1
postcss-loader: 3.0.0
precss: 4.0.0
autoprefixer: 9.4.10
lost: 8.1.0
mini-css-extract-plugin: 0.5.0
The text was updated successfully, but these errors were encountered: