Open geertjanknapen1 opened 1 month ago
I can get around it (once) by deleting vendor/withcandour
and then running composer install
.
But the moment I run npm run dev
again, I am greeted by the same Vite manifest error again.
Seems to happen due to the CleanWebpackPlugin deleting some things which it shouldn't..
.webpackConfig({
plugins: [
new CleanWebpackPlugin({
dry: false,
verbose: false,
cleanOnceBeforeBuildPatterns: [
'**/*',
'!storage/**',
'!index.php',
'!robots.txt',
'!favicon.ico',
'!d/**',
'!tds/**',
],
}),
],
output: {
publicPath: path.destPublic,
},
stats: {
children: true,
}
})
Heya folks, I've recently updated to Laravel 11 and Statamic 5. But now, whenever I try to access the control panel, I run into the following issue:
I saw the addon was updated to use Vite, instead of Webpack. I'm still using Webpack, could that be the problem.
I've set-up my
webpack.mix.js
file as follows:Update
Even when I remove
mix.copyDirectory(path.sourceVendor + 'withcandour/aardvark-seo/resources/', path.destVendor + 'aardvark-seo')
from thewebpack.mix.js
file, or replace it with the following.copyDirectory(path.sourceVendor + 'withcandour/aardvark-seo/resources/dist', path.destVendor + 'aardvark-seo/build')
, the error keeps persisting.