You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since updating to Laravel Mix 6 I am getting the following exception, which as also mentioned in #2527 :
❯ npm run production
> @ production /Users/bjarnbronsveld/PhpStormProjects/xxxx
> mix --production
[webpack-cli] TypeError: Cannot read property 'postCss' of undefined
at Object.boot (/Users/bjarnbronsveld/PhpStormProjects/es-xxxx/node_modules/laravel-mix-purgecss/index.js:25:35)
at /Users/bjarnbronsveld/PhpStormProjects/es-xxxx/node_modules/laravel-mix/src/components/ComponentRegistrar.js:72:41
at /Users/bjarnbronsveld/PhpStormProjects/es-xxxx/node_modules/laravel-mix/src/Dispatcher.js:34:69
at Array.map (<anonymous>)
at Dispatcher.fire (/Users/bjarnbronsveld/PhpStormProjects/es-xxxx/node_modules/laravel-mix/src/Dispatcher.js:34:54)
at Mix.dispatch (/Users/bjarnbronsveld/PhpStormProjects/es-xxxx/node_modules/laravel-mix/src/Mix.js:108:32)
at module.exports (/Users/bjarnbronsveld/PhpStormProjects/es-xxxx/node_modules/laravel-mix/setup/webpack.config.js:5:15)
at /Users/bjarnbronsveld/PhpStormProjects/es-xxxx/node_modules/webpack-cli/lib/groups/resolveConfig.js:176:35
at Array.map (<anonymous>)
at finalize (/Users/bjarnbronsveld/PhpStormProjects/es-xxxx/node_modules/webpack-cli/lib/groups/resolveConfig.js:166:20)
Even though I have postCss 8 installed, it seems to keep failing.
node -v
): v14.15.2npm -v
): 6.14.9Description:
Since updating to Laravel Mix 6 I am getting the following exception, which as also mentioned in #2527 :
Even though I have postCss 8 installed, it seems to keep failing.
My webpack.mix.js looks like this:
This is my package.json:
Steps To Reproduce:
Create a Laravel 8 project with TailwindCSS 2.0 and Laravel Mix 6. Then set up my webpack.mix.js and install the packages above.
Once done, run
npm run production
The text was updated successfully, but these errors were encountered: