-
-
Notifications
You must be signed in to change notification settings - Fork 502
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
Fix node command error caused by type: module in package.json #740
Conversation
type: module
in package.json
type: module
in package.json
environments
type: module
in package.json
environmentstype: module
in package.json
" environments
type: module
in package.json
" environmentstype: module
in package.json
" environments
type: module
in package.json
" environments
@osbre seems like a good fix, thank you for the contribution. Would you pulling the latest version from main into your branch? |
Thanks @timvandijck, I've updated the branch |
@timvandijck Here is a similar change made to the official Laravel package: laravel/octane#696 |
@timvandijck any updates on when this can be merged? |
maybe even @freekmurze could have a look? its currently broken for Laravel ^10.8 without this change |
Will this break for people on older Laravel versions? |
Unknown. |
it shouldn't unless they have a reference to btw, the tests are failing for unrelated reason and need to be re-run. |
Thanks! |
Since the official Laravel starters (Jetstream and Breeze) now have this line in
package.json
,laravel/jetstream#1315
This package no longer works in new Laravel projects because the
node
command execution results in an error.The solution would be rename the file to
cjs
which will indicate that this file runs CommonJS code.