-
Notifications
You must be signed in to change notification settings - Fork 8k
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
No PostCSS Config found with build:prod #604
Comments
I have the same issue since 4 hours ! No idea where does it from |
same issue too |
I had the same issue, I manage to fix it by changing in the dependencies of my package.json : |
Or you can create a file named
It is a temp fix if you want to use postcss-loader with version > 1.2.1. |
FWIW, I had to create the postcss.config.js (with module.exports={}) to get things working again. Even with the latest commit which locks the version to 1.0.0 and adds the loader entry, the problem is not resolved without the minimal config file. |
@ESadouski please take a look at #604 (comment) comment which looks like a proper fix. |
better solution... since you're obviously using webpack, add a |
@momikey seems good, but I cannot get it to work with webpack 2. The workaround with the postcss.config.js file does work. A bit less elegant, though. |
@gazorg can you post your config? :) |
Of course I can. As it is just doodling, I can post the entire build. Though, I should say that I just have the same problem and was very happy to find a workaround. My setup is vue js 2/webpack 2/bootstrap 4 so I think quite different. That was the reason I didn't post the config in the first place. |
* yarn.lock * add postcss.config.js base on this issue: akveo/ngx-admin#604 (comment)
This is a bug reported for newer versions of postcss. akveo/ngx-admin#604 with @tayanefernandes
Via Google: akveo/ngx-admin#604
@moimikey
You suggested to use this and I already have Started happening after I updated it from However, this works fine. |
same problem here just like @aseem2625 , same results from trying both fixes.
|
Adding I had the ...
test: /\.s?css$/,
exclude: /node_modules/,
use: ExtractTextPlugin.extract({
use: [{
loader: 'css-loader'
}, {
loader: 'postcss-loader',
options: {
plugins: (loader) => [
require('postcss-smart-import'),
require('autoprefixer'),
]
}
}, {
loader: 'sass-loader'
}]
})
... |
@AlbertXingZhang thanks you man it has been 3 hours that i had this problem |
@kevinweber tried your solution with no luck. Spent 1 hour tryin. Guess ill have to add this useless config file |
another alternatives from adding
or even better, no need to create any file, just add this single line into
|
Had the same issue and I've managed to solve it thanks to @kevinweber. The only thing I changed was ...
use: ExtractTextPlugin.extract({
use: [
...
{
loader: 'postcss-loader',
options: {
plugins: (loader) => [
require('postcss-import'),
require('autoprefixer')
]
}
}
...
]
})
... |
I ran into this issue using a monorepo with dependency hoisting enabled (via
Here is the proxy file: const relativeCwd = '.' + process.cwd().replace(__dirname, ''); //-> ./packages/my-vue-app
module.exports = require(relativeCwd + '/postcss.config.js'); Hope that helps someone. |
@DesignByOnyx ,用你的方法解决了我的问题,但导致另一个项目出现了问题,我改成了这个全都可以运行了
|
[x ] bug report
[ ] feature request
[ ] question about the decisions made in the repository
When I try to deploy the dashboard using Jenkins on a Linux environment, I am getting the following error
Any idea on what the problem might be?
The text was updated successfully, but these errors were encountered: