F
Filament2y ago
Alan

filament problem definition theme.

I followed all the steps suggested in: https://filamentphp.com/docs/2.x/admin/appearance#building-themes on a fresh laravel install with filament, however I always get the following error when running npm run dev.
Filament
Appearance - Admin Panel - Filament
The elegant TALL stack admin panel for Laravel artisans.
28 Replies
Dan Harrin
Dan Harrin2y ago
please share your postcss.config.js
LeandroFerreira
Filament
Easy way to create a Filament Theme in minutes! by Leandro C. Ferre...
Filament is a collection of tools for rapidly building beautiful TALL stack apps, designed for humans.
Alan
AlanOP2y ago
package.json
Alan
AlanOP2y ago
postcss.config.js
Alan
AlanOP2y ago
tailwind.config.js
Dan Harrin
Dan Harrin2y ago
the error suggests that it doesnt like the module.exports bit
Alan
AlanOP2y ago
vite.config.js
Dan Harrin
Dan Harrin2y ago
can you try export default { in the postcss config instead of module.exports
Alan
AlanOP2y ago
yes, first I followed your tip, but it had the same problem, then I started a new installation, and it resulted in the same problem what would the code snippet look like?
LeandroFerreira
Could you try to remove "type": "module" in the package.json?
Alan
AlanOP2y ago
awcodes
awcodes2y ago
Leave the type: module. Change postcss.config.js to postcss.config.cjs.
LeandroFerreira
I did it in Filament V3 👌
awcodes
awcodes2y ago
Shouldn’t be necessary with v2. But would be my first guess.
LeandroFerreira
You could also clone this repo and try: https://github.com/leandrocfe/filament-custom-theme
GitHub
GitHub - leandrocfe/filament-custom-theme: Filament custom theme
Filament custom theme. Contribute to leandrocfe/filament-custom-theme development by creating an account on GitHub.
Alan
AlanOP2y ago
Alan
AlanOP2y ago
I will clone and test
awcodes
awcodes2y ago
maybe the modules got screwed up somehow. you could try removing node_modules and running npm install again
Alan
AlanOP2y ago
did not work, same error as above
awcodes
awcodes2y ago
hmm.. it's weird that in the original message it's saying it can't find your 'postcss.config.js' file. Wonder if it's a permissions issue on the file in Laragon.
Alan
AlanOP2y ago
cloned your repository and ran the commands requested in read.md, and when running the last npm run build or dev it returns the following message
Alan
AlanOP2y ago
I also noticed that when running npm install the terminal sends me this:
LeandroFerreira
node version?
Alan
AlanOP2y ago
v14.16.0
Dan Harrin
Dan Harrin2y ago
do you have vite and postcss working on another project
LeandroFerreira
try to update to a lts version
Alan
AlanOP2y ago
not first time working with them it worked correctly, I'm going to use your repository as a model for my application, I hope I don't have a problem
LeandroFerreira
Hey @Dan Harrin ,Filament V3 offers options for colors and themes, making it incredibly easy to personalize our experience 💛
Want results from more Discord servers?
Add your server