-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
TypeError when starting Vite #50
Comments
Hi we'll try to reproduce this error, thanks for pointing it out |
This is because of the module type added in laravel/laravel#6090 It should work again if you modify your {
"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 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
The text was updated successfully, but these errors were encountered: