Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New install not working (postcss incorrectly configured) #138

Closed
benshawuk opened this issue Oct 31, 2023 · 3 comments
Closed

New install not working (postcss incorrectly configured) #138

benshawuk opened this issue Oct 31, 2023 · 3 comments

Comments

@benshawuk
Copy link

benshawuk commented Oct 31, 2023

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

  • set up project with: laravel new
  • follow install instructions:
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
Copy link

BLXTR27 commented Nov 3, 2023

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

@tk-subgenius
Copy link

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
Copy link
Contributor

yes It was solved in PR of #142

@danharrin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants