I have a formula with an action call but the PHP script is not found after the click action. I use webpack and all PHP loaders are charging in my package.json . On my screen, I get the following error response:
Cannot POST /mail.php along with a 404 error code.
My webpack.config.js :
module: {
rules: [
{
test: /\.html$/,
use: 'html-loader'
},
{
test: /\.php$/,
use: 'php-loader'
},
{
test: /\.scss$/,
use: ['style-loader','css-loader','postcss-loader', 'sass-loader'],
},
{
test: /\.(png|jpg|gif)$/,
use:
{
loader : 'file-loader',
options : {
context: path.join(__dirname, '/src'),
name: '[path][name].[ext]',
esModule: false,
}
}
},
{
test: /\.(woff(2)?|ttf|eot|svg)$/,
use:
{
loader : 'file-loader',
options : {
name: '[path][name].[ext]',
}
}
},
{
enforce: 'pre',
test: /\.js$/,
exclude: /node_modules/,
loader: 'eslint-loader',
},
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
}
},
]
},