npm install & npm run dev compiles with error

I am new to filament and I am trying to learn filament forms v2 to use in a project. After a fresh installation of laravel 8 and livewire 2, I installed filament forms and ran npm install and npm run dev. I get an errror message like this ● Mix █████████████████████████ done (99%) plugins ERROR in ./resources/css/app.css Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js): ModuleBuildError: Module build failed (from ./node_modules/postcss-loader/dist/cjs.js): C:\laragon\www\filamentPHP.v2\postcss.config.js:1 export default ..... Can someone please help me out. I am at my wit end.
3 Replies
Dennis Koch
Dennis Koch2y ago
Change your extension to postcss.config.mjs
noob2ninja
noob2ninjaOP2y ago
Thank you very much for your assistance. It worked.
krekas
krekas2y ago
Fresh laravel 8? Well restart and use latest especially if you are learning

Did you find this page helpful?