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.
28 Replies
please share your postcss.config.js
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.
package.json
postcss.config.js
tailwind.config.js
the error suggests that it doesnt like the module.exports bit
vite.config.js
can you try
export default {
in the postcss config instead of module.exportsyes, 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?
Could you try to remove "type": "module" in the package.json?
Leave the type: module. Change postcss.config.js to postcss.config.cjs.
I did it in Filament V3 👌
Shouldn’t be necessary with v2. But would be my first guess.
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.
I will clone and test
maybe the modules got screwed up somehow. you could try removing node_modules and running npm install again
did not work, same error as above
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.
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
I also noticed that when running npm install the terminal sends me this:
node version?
v14.16.0
do you have vite and postcss working on another project
try to update to a lts version
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
Hey @Dan Harrin ,Filament V3 offers options for colors and themes, making it incredibly easy to personalize our experience
💛