Closed mikewink closed 1 year ago
Hi we'll try to reproduce this error, thanks for pointing it out
This is because of the module type added in https://github.com/laravel/laravel/pull/6090
It should work again if you modify your package.json
{
"private": true,
"type": "commonjs",
"scripts": {
"dev": "vite",
"build": "vite build"
},
"devDependencies": {
"@alpinejs/focus": "^3.10.5",
"@defstudio/vite-livewire-plugin": "^1.1.0",
"@tailwindcss/forms": "^0.5.2",
"@tailwindcss/typography": "^0.5.0",
"alpinejs": "^3.0.6",
"autoprefixer": "^10.4.7",
"axios": "^1.1.2",
"laravel-vite-plugin": "^0.7.5",
"postcss": "^8.4.14",
"tailwindcss": "^3.1.0",
"vite": "^4.0.0"
}
}
and also your postcss.config.js
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
All packages are working on migrating, or have already implemented, this new design. I think the package need to support it by default, if maintaining its essential position in the default Laravel stack (TALL) is its primary objective.
We are working toward the support for module system, will be released in a few days
Fixed in v1.2.1 by #56
sorry about the hiatus, had a lot of work lately, had to be sure not do break anything
Hello Team defstudio,
first, I would like to say thank you for this great plugin! 🏆
When I follow the installation steps for the plugin, I get this error message back:
I have another (older) Laravel project that works just fine with the given instructions. I noticed that
package.json
now is oftype=module
and that thepostcss.config
is nowexport default {
instead ofmodule.exports = {
, but I do not know if that is the reason.My current vite.config.js looks like this:
Package.json
Laravel: 10.10.1 Jetstream: 3.2.0 Livewire: 2.12.3 Alpine.js: 3.12.1