laravel-frontend-presets / tall

A TALL (Tailwind CSS, Alpine.js, Laravel and Livewire) Preset for Laravel
MIT License
2.42k stars 203 forks source link

New install not working (postcss incorrectly configured) #138

Closed benshawuk closed 10 months ago

benshawuk commented 10 months ago

Steps to reproduce (follow instructions on this GitHub page):

composer require livewire/livewire laravel-frontend-presets/tall
php artisan ui tall --auth
npm install
npm run dev

Then after running npm dev:

[Failed to load PostCSS config: Failed to load PostCSS config (searchPath: /Users/myname/Documents/laravel/talltest): [Failed to load PostCSS config] Failed to load PostCSS config (searchPath: /Users/myname/Documents/laravel/talltest): [ReferenceError] module is not defined in ES module scope
This file is being treated as an ES module because it has a '.js' file extension and '/Users/myname/Documents/laravel/talltest/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
BLXTR27 commented 10 months ago

Rename postcss.config.js to postcss.config.cjs works for me

tk-subgenius commented 10 months ago

hi, I would file a bug report but I'm just learning laravel and tools around it, so not sure what to recommend fixing here.. appreciate if someone else could help with that.

bhargavraviya commented 10 months ago

yes It was solved in PR of #142

@danharrin