Open belantikdev opened 2 years ago
Can you share your webpack config?
This is my webpack.mix.js
config.
let path = require("path");
let fs = require("fs");
let mix = require("laravel-mix");
mix.pug = require("laravel-mix-pug-recursive");
mix.pug("src/pug/*.pug", path.resolve(__dirname, "dist"), {
excludePath: "src/pug",
locals: {
config: { baseUrl: "http://localhost/" },
datas: JSON.parse(fs.readFileSync("src/jsons/data.json", "utf-8"))
},
pug: {
pretty: true
}
});
@mikemartin newer version laravel-mix/Assert.js remove dependencies
function,I use laravel-mix 6.0.18 work fine, but 6.0.41 got same issue
Failed to compile pug files.
Node versions: v14.15.4, v14.16.0, and v16.13.1 OS: Ubuntu 18.04 Package Manager: Yarn and NPM Dependencies:
Error output: