Fix node command error caused by type: module in package.json#740
Fix node command error caused by type: module in package.json#740freekmurze merged 1 commit intospatie:mainfrom osbre:feat/fix-package-type-module
Conversation
type: module in package.jsontype: 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
nodecommand execution results in an error.The solution would be rename the file to
cjswhich will indicate that this file runs CommonJS code.